mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-11-24 12:42:58 +08:00
Update log.go
This commit is contained in:
@@ -106,6 +106,11 @@ func (l *logger) setMode(mode int) {
|
||||
defer l.mtx.Unlock()
|
||||
l.mode = mode
|
||||
}
|
||||
func (l *logger) Mode() int {
|
||||
l.mtx.Lock()
|
||||
defer l.mtx.Unlock()
|
||||
return l.mode
|
||||
}
|
||||
|
||||
func (l *logger) checkFile() {
|
||||
if l.maxLogSize <= 0 {
|
||||
|
||||
Reference in New Issue
Block a user