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
parent
commit
a694f403b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dtmcli/dtmimp/utils.go

2
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)
}

Loading…
Cancel
Save