fixed some copy/paste errors
This commit is contained in:
parent
a8ccd953bb
commit
e6bf61483b
1 changed files with 2 additions and 2 deletions
4
print.go
4
print.go
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue