mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-22 04:56:49 +08:00
优化日志深度
This commit is contained in:
@@ -113,7 +113,7 @@ func (slf *LogModule) Printf(level uint, format string, v ...interface{}) {
|
|||||||
var file string
|
var file string
|
||||||
var line int
|
var line int
|
||||||
var ok bool
|
var ok bool
|
||||||
_, file, line, ok = runtime.Caller(1)
|
_, file, line, ok = runtime.Caller(3)
|
||||||
if !ok {
|
if !ok {
|
||||||
file = "???"
|
file = "???"
|
||||||
line = 0
|
line = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user