trim whitespace(s)

This commit is contained in:
Daniel Sommer 2023-11-02 12:14:40 +01:00
parent 583d9aabf2
commit 1f1ec29f7c

View file

@ -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)
} }