Merge pull request #14947 from roidelapluie/reloadinvalidyaml

fix(autoreload): Reload invalid yaml files
pull/14963/head
Julien 2 months ago committed by GitHub
commit 919648cafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1119,9 +1119,7 @@ func main() {
currentChecksum, err := config.GenerateChecksum(cfg.configFile)
if err != nil {
level.Error(logger).Log("msg", "Failed to generate checksum during configuration reload", "err", err)
continue
}
if currentChecksum == checksum {
} else if currentChecksum == checksum {
continue
}
level.Info(logger).Log("msg", "Configuration file change detected, reloading the configuration.")

Loading…
Cancel
Save