mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-29 17:52:53 +00:00
Output error on config load failure
This commit is contained in:
parent
0b818bac38
commit
22e1e9ca72
2
main.go
2
main.go
@ -97,7 +97,7 @@ func main() {
|
||||
log.With("file", *configFile).Infof("Loading configuration file")
|
||||
defer func() {
|
||||
if err != nil {
|
||||
log.With("file", *configFile).Errorf("Loading configuration file failed")
|
||||
log.With("file", *configFile).Errorf("Loading configuration file failed: %s", err)
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user