Skip to content

Commit

Permalink
Merge pull request #4833 from jijotj/main
Browse files Browse the repository at this point in the history
opsgenie-config: optimise warning log message during sanitize
  • Loading branch information
simonpasquier committed Jun 3, 2022
2 parents 5db6996 + 4b855ea commit c98a043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/alertmanager/amcfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ func (ogc *opsgenieConfig) sanitize(amVersion semver.Version, logger log.Logger)
}
}

if ogc.APIKey != "" {
if ogc.APIKey != "" && ogc.APIKeyFile != "" {
level.Warn(logger).Log("msg", "'api_key' and 'api_key_file' are mutually exclusive for OpsGenie receiver config - 'api_key' has taken precedence")
ogc.APIKeyFile = ""
}
Expand Down

0 comments on commit c98a043

Please sign in to comment.