logs-fix-9
This commit is contained in:
parent
0b0ab12bf0
commit
9fa248ca41
|
@ -21,5 +21,6 @@ func (u LogTextFormatter) Format(e *logrus.Entry) ([]byte, error) {
|
||||||
file := filepath.Base(e.Caller.File)
|
file := filepath.Base(e.Caller.File)
|
||||||
line := e.Caller.Line
|
line := e.Caller.Line
|
||||||
|
|
||||||
return []byte(fmt.Sprintf("%s [%s] %s\n", timestamp, level, message)), nil
|
return []byte(fmt.Sprintf("%s [%s] %s:%d %s\n", timestamp, level, file, line, message)), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user