mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-22 01:27:32 +08:00
修正日志文件中打印源码文件名和行数错误
This commit is contained in:
@@ -79,7 +79,7 @@ func (slf *LogModule) Printf(level uint, format string, v ...interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
slf.CheckAndGenFile()
|
slf.CheckAndGenFile()
|
||||||
slf.GetLoggerByLevel(level).Printf(format, v...)
|
slf.GetLoggerByLevel(level).Output(3, fmt.Sprintf(format, v...))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (slf *LogModule) Print(level uint, v ...interface{}) {
|
func (slf *LogModule) Print(level uint, v ...interface{}) {
|
||||||
@@ -88,5 +88,5 @@ func (slf *LogModule) Print(level uint, v ...interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
slf.CheckAndGenFile()
|
slf.CheckAndGenFile()
|
||||||
slf.GetLoggerByLevel(level).Print(v...)
|
slf.GetLoggerByLevel(level).Output(3, fmt.Sprint(v...))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user