Fix 4728: Print wrong file number
This commit is contained in:
parent
b58e2b5311
commit
334609a1ea
@ -56,6 +56,7 @@
|
|||||||
- TaskManager support graceful shutdown [4635](https://github.com/beego/beego/pull/4635)
|
- TaskManager support graceful shutdown [4635](https://github.com/beego/beego/pull/4635)
|
||||||
- Add comments to `web.Config`, rename `RouterXXX` to `CtrlXXX`, define `HandleFunc` [4714](https://github.com/beego/beego/pull/4714)
|
- Add comments to `web.Config`, rename `RouterXXX` to `CtrlXXX`, define `HandleFunc` [4714](https://github.com/beego/beego/pull/4714)
|
||||||
- Refactor: Move `BindXXX` and `XXXResp` methods to `context.Context`. [4718](https://github.com/beego/beego/pull/4718)
|
- Refactor: Move `BindXXX` and `XXXResp` methods to `context.Context`. [4718](https://github.com/beego/beego/pull/4718)
|
||||||
|
- Fix 4728: Print wrong file name. [4737](https://github.com/beego/beego/pull/4737)
|
||||||
- fix bug:reflect.ValueOf(nil) in getFlatParams [4715](https://github.com/beego/beego/pull/4715)
|
- fix bug:reflect.ValueOf(nil) in getFlatParams [4715](https://github.com/beego/beego/pull/4715)
|
||||||
|
|
||||||
## Fix Sonar
|
## Fix Sonar
|
||||||
|
|||||||
@ -520,19 +520,49 @@ func (bl *BeeLogger) Debug(format string, v ...interface{}) {
|
|||||||
// Warn Log WARN level message.
|
// Warn Log WARN level message.
|
||||||
// compatibility alias for Warning()
|
// compatibility alias for Warning()
|
||||||
func (bl *BeeLogger) Warn(format string, v ...interface{}) {
|
func (bl *BeeLogger) Warn(format string, v ...interface{}) {
|
||||||
bl.Warning(format, v...)
|
if LevelWarn > bl.level {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
lm := &LogMsg{
|
||||||
|
Level: LevelWarn,
|
||||||
|
Msg: format,
|
||||||
|
When: time.Now(),
|
||||||
|
Args: v,
|
||||||
|
}
|
||||||
|
|
||||||
|
bl.writeMsg(lm)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info Log INFO level message.
|
// Info Log INFO level message.
|
||||||
// compatibility alias for Informational()
|
// compatibility alias for Informational()
|
||||||
func (bl *BeeLogger) Info(format string, v ...interface{}) {
|
func (bl *BeeLogger) Info(format string, v ...interface{}) {
|
||||||
bl.Informational(format, v...)
|
if LevelInfo > bl.level {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
lm := &LogMsg{
|
||||||
|
Level: LevelInfo,
|
||||||
|
Msg: format,
|
||||||
|
When: time.Now(),
|
||||||
|
Args: v,
|
||||||
|
}
|
||||||
|
|
||||||
|
bl.writeMsg(lm)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trace Log TRACE level message.
|
// Trace Log TRACE level message.
|
||||||
// compatibility alias for Debug()
|
// compatibility alias for Debug()
|
||||||
func (bl *BeeLogger) Trace(format string, v ...interface{}) {
|
func (bl *BeeLogger) Trace(format string, v ...interface{}) {
|
||||||
bl.Debug(format, v...)
|
if LevelDebug > bl.level {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
lm := &LogMsg{
|
||||||
|
Level: LevelDebug,
|
||||||
|
Msg: format,
|
||||||
|
When: time.Now(),
|
||||||
|
Args: v,
|
||||||
|
}
|
||||||
|
|
||||||
|
bl.writeMsg(lm)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Flush flush all chan data.
|
// Flush flush all chan data.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user