mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-15 05:07:29 +08:00
fixed log print format
This commit is contained in:
@@ -123,8 +123,8 @@ func (slf *LogModule) Printf(level uint, format string, v ...interface{}) {
|
|||||||
file = parts[len(parts)-1]
|
file = parts[len(parts)-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
format = LogPrefix[level] + time.Now().Format("2006/1/2 15:04:05") + fmt.Sprintf(" %s:%d:", file, line) + format
|
ft := LogPrefix[level] + time.Now().Format("2006/1/2 15:04:05") + fmt.Sprintf(" %s:%d:", file, line) + format
|
||||||
slf.listenFun(level, fmt.Sprintf(format, v...))
|
slf.listenFun(level, fmt.Sprintf(ft, v...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user