From a58576e6c575546dea8df36ab3d951e509d3ee6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Mon, 28 Nov 2016 11:35:38 +0100 Subject: [PATCH] fixed stupid thread lock --- gologger.go | 6 ------ 1 file changed, 6 deletions(-) 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 -- 1.8.1.2