diff options
Diffstat (limited to 'internal/log.go')
-rw-r--r-- | internal/log.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/log.go b/internal/log.go index d7e852c8..da6e2041 100644 --- a/internal/log.go +++ b/internal/log.go @@ -24,6 +24,7 @@ import ( "path/filepath" "runtime" "strings" + "sync" "github.com/matrix-org/util" @@ -37,6 +38,7 @@ import ( // this unfortunately results in us adding the same hook multiple times. // This map ensures we only ever add one level hook. var stdLevelLogAdded = make(map[logrus.Level]bool) +var levelLogAddedMu = &sync.Mutex{} type utcFormatter struct { logrus.Formatter |