Alerting: Fix incorrect initialization of logger (#81099)

This commit is contained in:
George Robinson 2024-01-23 15:29:38 +00:00 committed by GitHub
parent a60e60183e
commit 85b9edcd28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,7 +128,7 @@ func NewAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store A
Nflog: nflogOptions,
}
l := log.New("ngalert.notifier.alertmanager", orgID)
l := log.New("ngalert.notifier.alertmanager", "org", orgID)
gam, err := alertingNotify.NewGrafanaAlertmanager("orgID", orgID, amcfg, peer, l, alertingNotify.NewGrafanaAlertmanagerMetrics(m.Registerer))
if err != nil {
return nil, err