mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 00:38:33 +02:00
fix: json data not being loaded from disk correctly, logging
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user