fixed some copy/paste errors

This commit is contained in:
Daniel Sommer 2023-11-02 12:26:03 +01:00
parent a8ccd953bb
commit e6bf61483b

View file

@ -77,8 +77,8 @@ func print(logLevel logLevel, message string, timestamp int64, extras ...string)
if timestamp <= 0 { if timestamp <= 0 {
formatted = strings.ReplaceAll(formatted, GetTimediffFormat(), "") formatted = strings.ReplaceAll(formatted, GetTimediffFormat(), "")
} else { } else {
format := GetExtrasFormat() format := GetTimediffFormat()
formatted = strings.ReplaceAll(formatted, format, strings.ReplaceAll(format, PLACEHOLDER_EXTRAS, strconv.FormatInt(now.UnixMilli()-timestamp, 10)+"ms")) formatted = strings.ReplaceAll(formatted, format, strings.ReplaceAll(format, PLACEHOLDER_TIMEDIFF, strconv.FormatInt(now.UnixMilli()-timestamp, 10)+"ms"))
} }
fmt.Println(strings.TrimSpace(formatted)) fmt.Println(strings.TrimSpace(formatted))
if logLevel.level == FatalLevel.level { if logLevel.level == FatalLevel.level {