log formatting fixed