change default debug level to warn (#2084)

This commit is contained in:
Cytown
2026-03-27 21:04:28 +08:00
committed by GitHub
parent 0c9e4f0658
commit 98c78363b3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -612,7 +612,7 @@ func TestDefaultConfig_HooksDefaults(t *testing.T) {
func TestDefaultConfig_LogLevel(t *testing.T) {
cfg := DefaultConfig()
if cfg.Gateway.LogLevel != "fatal" {
if cfg.Gateway.LogLevel != "warn" {
t.Errorf("LogLevel = %q, want \"fatal\"", cfg.Gateway.LogLevel)
}
}
@@ -1425,7 +1425,7 @@ func TestConfigLogLevelEmpty(t *testing.T) {
t.Fatalf("LoadConfig: %v", err)
}
// When config omits log_level, the DefaultConfig value ("fatal") is preserved.
if cfg.Gateway.LogLevel != "fatal" {
if cfg.Gateway.LogLevel != "warn" {
t.Errorf("LogLevel = %q, want \"fatal\"", cfg.Gateway.LogLevel)
}
}
+1 -1
View File
@@ -357,7 +357,7 @@ func DefaultConfig() *Config {
Host: "127.0.0.1",
Port: 18790,
HotReload: false,
LogLevel: "fatal",
LogLevel: "warn",
},
Tools: ToolsConfig{
FilterSensitiveData: true,