You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the program only needs one Logger, it works fine; however, when the program needs multiple Loggers, or the Logger is dynamic, the millCh will not be released, resulting in a goroutine leak.
#57#80#100 There already see 3 issues, so as a general purpose log rotation library, why not fix this?
millCh never close
func (l*Logger) millRun() {
forrangel.millCh {
// what am I going to do, log this?_=l.millRunOnce()
}
}
func (l*Logger) Close() error {
l.mu.Lock()
deferl.mu.Unlock()
returnl.close()
}
The text was updated successfully, but these errors were encountered:
When the program only needs one Logger, it works fine; however, when the program needs multiple Loggers, or the Logger is dynamic, the millCh will not be released, resulting in a goroutine leak.
#57 #80 #100 There already see 3 issues, so as a general purpose log rotation library, why not fix this?
millCh never close
The text was updated successfully, but these errors were encountered: