only set if non-nil, avoid crash on unconfigured logger
@@ -87,7 +87,9 @@ func ConfigureLogger(clog *log.Logger) error {
if logReportCaller {
clog.SetReportCaller(true)
}
+ if logFormatter != nil {
clog.SetFormatter(logFormatter)
+ }
clog.SetLevel(logLevel)
return nil
}
