aboutsummaryrefslogtreecommitdiff
path: root/internal/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/log.go')
-rw-r--r--internal/log.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/log.go b/internal/log.go
index da6e2041..9e8656c5 100644
--- a/internal/log.go
+++ b/internal/log.go
@@ -101,6 +101,8 @@ func SetupPprof() {
// SetupStdLogging configures the logging format to standard output. Typically, it is called when the config is not yet loaded.
func SetupStdLogging() {
+ levelLogAddedMu.Lock()
+ defer levelLogAddedMu.Unlock()
logrus.SetReportCaller(true)
logrus.SetFormatter(&utcFormatter{
&logrus.TextFormatter{