Browse Source
Merge pull request #104 from lsytj0413/fix-log-frame
fix: add callerskip with 1
pull/107/head
yedf2
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
dtmcli/dtmimp/utils.go
|
|
|
@ -133,7 +133,7 @@ func InitLog() { |
|
|
|
config.Encoding = "console" |
|
|
|
config.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder |
|
|
|
} |
|
|
|
p, err := config.Build() |
|
|
|
p, err := config.Build(zap.AddCallerSkip(1)) |
|
|
|
if err != nil { |
|
|
|
log.Fatal("create logger failed: ", err) |
|
|
|
} |
|
|
|
|