Skip to content

Commit

Permalink
Fix incorrect "No health check" log
Browse files Browse the repository at this point in the history
  • Loading branch information
JenswBE committed Sep 21, 2022
1 parent 069b0de commit 945755a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ func ParseConfig(configPath string) (*Config, error) {
}
}
if rawConfig.HealthCheck.URL != "" {
log.Info().Msg("No health check URL found, disabling health check calling.")
config.HealthCheck.URL, err = url.Parse(rawConfig.HealthCheck.URL)
if err != nil {
return nil, fmt.Errorf("failed to parse health check URL '%s': %w", rawConfig.HealthCheck.URL, err)
}
} else {
log.Info().Msg("No health check URL found, disabling health check calling.")
}
config.Notifiers = make(map[string]NotifierConfig, len(rawConfig.Notifiers))
serviceRouter := &shoutrrrRouter.ServiceRouter{}
Expand Down

0 comments on commit 945755a

Please sign in to comment.