diff --git a/gologger.go b/gologger.go index 004ce13..0072e03 100644 --- a/gologger.go +++ b/gologger.go @@ -90,9 +90,6 @@ func (l *Logger) Close() { func (l *Logger) splitEventLog() { timestamp := "_" + strconv.FormatInt(time.Now().Unix(), 10) - muEv.Lock() - defer muEv.Unlock() - evfstats, _ := l.eventf.Stat() if evfstats.Size() >= MaxLogFileSize100KB { // close old file @@ -115,9 +112,6 @@ func (l *Logger) splitEventLog() { func (l *Logger) splitErrorLog() { timestamp := "_" + strconv.FormatInt(time.Now().Unix(), 10) - muEr.Lock() - defer muEr.Unlock() - erfstats, _ := l.errorf.Stat() if erfstats.Size() >= MaxLogFileSize100KB { // close old file