logs-fix-13
This commit is contained in:
parent
09e4daf66e
commit
7c949417c1
|
@ -15,6 +15,10 @@ type LogTextFormatter struct {
|
|||
func (u LogTextFormatter) Format(e *logrus.Entry) ([]byte, error) {
|
||||
level := strings.ToUpper(e.Level.String())
|
||||
message := e.Message
|
||||
parts := strings.SplitN(message, " +0000]", 2)
|
||||
if len(parts) >= 2 {
|
||||
message = parts[2]
|
||||
}
|
||||
|
||||
var color string
|
||||
switch e.Level {
|
||||
|
|
Loading…
Reference in New Issue
Block a user