mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
优化日志代码
This commit is contained in:
@@ -123,7 +123,7 @@ func (logger *Logger) Fatal(format string, a ...interface{}) {
|
||||
logger.doPrintf(fatalLevel, printFatalLevel, format, a...)
|
||||
}
|
||||
|
||||
var gLogger, _ = New("debug", "", log.LstdFlags)
|
||||
var gLogger, _ = New("debug", "", log.LstdFlags|log.Lshortfile)
|
||||
|
||||
// It's dangerous to call the method on logging
|
||||
func Export(logger *Logger) {
|
||||
|
||||
Reference in New Issue
Block a user