Merge pull request #14947 from roidelapluie/reloadinvalidyaml

fix(autoreload): Reload invalid yaml files
This commit is contained in:
Julien 2024-09-23 10:03:23 +02:00 committed by GitHub
commit 919648cafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.")