fix for entry data field race condition

This commit is contained in:
David Bariod
2021-02-16 10:29:37 +01:00
parent f513f99c15
commit ac6e35b4c2
5 changed files with 79 additions and 34 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import (
// LogFunction For big messages, it can be more efficient to pass a function
// and only call it if the log level is actually enables rather than
// generating the log message and then checking if the level is enabled
type LogFunction func()[]interface{}
type LogFunction func() []interface{}
type Logger struct {
// The logs are `io.Copy`'d to this in a mutex. It's common to set this to a