fix: json data not being loaded from disk correctly, logging

This commit is contained in:
yusing
2025-04-25 08:20:00 +08:00
parent c8e9ed8440
commit 5afa93a8f1
3 changed files with 44 additions and 53 deletions

View File

@@ -4,6 +4,7 @@ package logging
import (
"io"
"log"
"os"
"strings"
"github.com/rs/zerolog"
@@ -32,6 +33,7 @@ func init() {
}
prefixLength := len(timeFmt) + 5 // level takes 3 + 2 spaces
prefix = strings.Repeat(" ", prefixLength)
InitLogger(os.Stdout)
}
func fmtMessage(msg string) string {