mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
change default debug level to warn (#2084)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -357,7 +357,7 @@ func DefaultConfig() *Config {
|
||||
Host: "127.0.0.1",
|
||||
Port: 18790,
|
||||
HotReload: false,
|
||||
LogLevel: "fatal",
|
||||
LogLevel: "warn",
|
||||
},
|
||||
Tools: ToolsConfig{
|
||||
FilterSensitiveData: true,
|
||||
|
||||
Reference in New Issue
Block a user