From e6bf61483b3d61e2d842302c2d1176192189d228 Mon Sep 17 00:00:00 2001 From: velvettear Date: Thu, 2 Nov 2023 12:26:03 +0100 Subject: [PATCH] fixed some copy/paste errors --- print.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/print.go b/print.go index 3f3acdf..d807d65 100644 --- a/print.go +++ b/print.go @@ -77,8 +77,8 @@ func print(logLevel logLevel, message string, timestamp int64, extras ...string) if timestamp <= 0 { formatted = strings.ReplaceAll(formatted, GetTimediffFormat(), "") } else { - format := GetExtrasFormat() - formatted = strings.ReplaceAll(formatted, format, strings.ReplaceAll(format, PLACEHOLDER_EXTRAS, strconv.FormatInt(now.UnixMilli()-timestamp, 10)+"ms")) + format := GetTimediffFormat() + formatted = strings.ReplaceAll(formatted, format, strings.ReplaceAll(format, PLACEHOLDER_TIMEDIFF, strconv.FormatInt(now.UnixMilli()-timestamp, 10)+"ms")) } fmt.Println(strings.TrimSpace(formatted)) if logLevel.level == FatalLevel.level {