日志库新增功能指令
This commit is contained in:
1 parent
7b3ba4bb3c
commit
2a59af8e6d
1 file changed
+2
-2
@@ -238,8 +238,8 @@ func (l *Logger) doLog() {
|
||||
}
|
||||
|
||||
func (l *Logger) writeLog(logData []byte, logTag string) {
|
||||
if logTag != "" {
|
||||
l.writeLogFile(l.WriteBuf, logTag)
|
||||
if CONF.EnableFile && logTag != "" {
|
||||
l.writeLogFile(logData, logTag)
|
||||
}
|
||||
l.WriteBuf = append(l.WriteBuf, logData...)
|
||||
l.WriteCacheNum++
|
||||
|
||||
Reference in new issue
Block a user