From e42ead15ba63ced439a0b8d5798011538ddd5665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Wed, 14 Feb 2018 12:10:23 +0100 Subject: [PATCH] mutex initialization --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 4f89f04..209c85d 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,8 @@ func Init(flags Option, splitSize int64) error { fmt.Printf("logger: new: couldn't create event log file\n") return err } + + logger.muEv = &sync.Mutex{} } // error file/dir @@ -85,6 +87,8 @@ func Init(flags Option, splitSize int64) error { fmt.Printf("logger: new: couldn't create error log file\n") return err } + + logger.muEr = &sync.Mutex{} } return nil -- 1.8.1.2