Skip to content

Commit

Permalink
Bugfix: server was ending when in log-debug mode (#6321)
Browse files Browse the repository at this point in the history
Unfortunately I missed a "log.Printf -> return fmt.Errorf" mistake in #6285.
I think it just got lost in the surrounding "log.Fatalf -> return fmt.Errorf" flood.

Oh well.  Easy fix.  This appears to be the only one.
  • Loading branch information
Groxx authored Oct 1, 2024
1 parent 45d5403 commit 75bacb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/cadence/cadence.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func startHandler(c *cli.Context) error {
return fmt.Errorf("Config file corrupted: %w", err)
}
if cfg.Log.Level == "debug" {
return fmt.Errorf("config=%v", cfg.String())
log.Printf("config=%v", cfg.String())
}
if cfg.DynamicConfig.Client == "" {
cfg.DynamicConfigClient.Filepath = constructPathIfNeed(rootDir, cfg.DynamicConfigClient.Filepath)
Expand Down

0 comments on commit 75bacb0

Please sign in to comment.