Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Fix zap logger encoding

天舟fb7e869d9035
diff --git a/bin/server/cmd/root.go b/bin/server/cmd/root.go
index 8ac333cc56..b1719112c3 100644
--- a/bin/server/cmd/root.go
+++ b/bin/server/cmd/root.go
@@ -68,6 +68,8 @@ var (
logConfig := zap.NewProductionConfig()
// Always set encoding to "console" for now since we do not redirect to file.
logConfig.Encoding = "console"
+ // "console" encoding needs to use the corresponding development encoder config.
+ logConfig.EncoderConfig = zap.NewDevelopmentEncoderConfig()
if debug {
logConfig.Level = zap.NewAtomicLevelAt(zap.DebugLevel)
} else {