mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
77976ea810
commit
481a68cbf5
@ -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.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user