trim whitespace(s)
This commit is contained in:
parent
583d9aabf2
commit
1f1ec29f7c
1 changed files with 1 additions and 1 deletions
2
print.go
2
print.go
|
@ -78,7 +78,7 @@ func print(logLevel logLevel, message string, timestamp int64, extras ...string)
|
||||||
tmp = strconv.FormatInt(now.UnixMilli()-timestamp, 10) + "ms"
|
tmp = strconv.FormatInt(now.UnixMilli()-timestamp, 10) + "ms"
|
||||||
}
|
}
|
||||||
formatted = strings.ReplaceAll(formatted, GetTimediffFormat(), tmp)
|
formatted = strings.ReplaceAll(formatted, GetTimediffFormat(), tmp)
|
||||||
fmt.Println(formatted)
|
fmt.Println(strings.TrimSpace(formatted))
|
||||||
if logLevel.level == FatalLevel.level {
|
if logLevel.level == FatalLevel.level {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue