log-error-more
All checks were successful
deploy / deploy (push) Successful in 7s

This commit is contained in:
Untone 2024-12-11 22:40:26 +03:00
parent 586b2cc3af
commit acc471e500

View File

@ -35,6 +35,7 @@ func (u LogTextFormatter) Format(e *logrus.Entry) ([]byte, error) {
} }
if e.Caller != nil { if e.Caller != nil {
fmt.Sprintf("%r", e)
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:%d %s%s\033[0m\n", color, level, file, line, message, color)), nil return []byte(fmt.Sprintf("%s[%s] %s:%d %s%s\033[0m\n", color, level, file, line, message, color)), nil