
Move the LogJSON check into the log function so that the caller function can be inlined. This is helpful for hot functions like `log.Debug` where it's likely that the `-vv` flag is not set thus the to avoid the extra function call.
Move the LogJSON check into the log function so that the caller function can be inlined. This is helpful for hot functions like `log.Debug` where it's likely that the `-vv` flag is not set thus the to avoid the extra function call.