Commit a58576e6c575546dea8df36ab3d951e509d3ee6e
1 parent
3ba7b56957
Exists in
master
fixed stupid thread lock
Showing
1 changed file
with
0 additions
and
6 deletions
Show diff stats
gologger.go
... | ... | @@ -90,9 +90,6 @@ func (l *Logger) Close() { |
90 | 90 | func (l *Logger) splitEventLog() { |
91 | 91 | timestamp := "_" + strconv.FormatInt(time.Now().Unix(), 10) |
92 | 92 | |
93 | - muEv.Lock() | |
94 | - defer muEv.Unlock() | |
95 | - | |
96 | 93 | evfstats, _ := l.eventf.Stat() |
97 | 94 | if evfstats.Size() >= MaxLogFileSize100KB { |
98 | 95 | // close old file |
... | ... | @@ -115,9 +112,6 @@ func (l *Logger) splitEventLog() { |
115 | 112 | func (l *Logger) splitErrorLog() { |
116 | 113 | timestamp := "_" + strconv.FormatInt(time.Now().Unix(), 10) |
117 | 114 | |
118 | - muEr.Lock() | |
119 | - defer muEr.Unlock() | |
120 | - | |
121 | 115 | erfstats, _ := l.errorf.Stat() |
122 | 116 | if erfstats.Size() >= MaxLogFileSize100KB { |
123 | 117 | // close old file | ... | ... |