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 {