Browse Source

修改log中Panicf调用OutPut传参错误

master
JiBadBoy 6 years ago
parent
commit
852e091987
  1. 2
      zlog/zlogger.go

2
zlog/zlogger.go

@ -256,7 +256,7 @@ func (log *ZinxLogger) Fatal(v ...interface{}) {
// ====> Panic <==== // ====> Panic <====
func (log *ZinxLogger) Panicf(format string, v ...interface{}) { func (log *ZinxLogger) Panicf(format string, v ...interface{}) {
s := fmt.Sprintf(format, v...) s := fmt.Sprintf(format, v...)
_ = log.OutPut(LogPanic, fmt.Sprintf(format, s))
_ = log.OutPut(LogPanic, s)
panic(s) panic(s)
} }

Loading…
Cancel
Save