Unified Alerting: Make log message follow codebase convention. (#46881)

1. Keep log lines lower case.
2. The key-value pair arguments are not format argument for the string.
3. Always use the "err" key.
This commit is contained in:
Joe Blubaugh 2022-03-23 15:07:07 +01:00 committed by GitHub
parent 77976ea810
commit 481a68cbf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,7 @@ func newAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store s
am.silences.Maintenance(silenceMaintenanceInterval, silencesFilePath, am.stopc, func() (int64, error) {
// Delete silences older than the retention period.
if _, err := am.silences.GC(); err != nil {
am.logger.Error("Silence Garbage Collection Failed at %v: %v", time.Now(), err)
am.logger.Error("silence garbage collection", "err", err)
// Don't return here - we need to snapshot our state first.
}