Skip to content

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

Always set zap encoding to “console” for now

天舟a714c7578b26
diff --git a/bin/server/cmd/root.go b/bin/server/cmd/root.go
index 1667053ae5..e067b27982 100644
--- a/bin/server/cmd/root.go
+++ b/bin/server/cmd/root.go
@@ -174,6 +174,8 @@ func newMain() *main {
fmt.Printf("secret=%s\n", secretFile)
fmt.Println("-----Config END-------")
+ // Always set encoding to "console" for now since we do not redirect to file.
+ activeProfile.logConfig.Encoding = "console"
logger, err := activeProfile.logConfig.Build()
if err != nil {
panic(fmt.Errorf("failed to create logger. %w", err))