Improve bridge for Alertmanager logger (#42958)

* Implement go-kit/log.Logger for internal logger.
This commit is contained in:
Yuriy Tseretyan
2021-12-13 09:41:53 -05:00
committed by GitHub
parent a10708713c
commit 1db9b1e6a9
3 changed files with 142 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ func newAlertmanager(orgID int64, cfg *setting.Cfg, store store.AlertingStore, k
decryptFn: decryptFn,
}
am.gokitLogger = gokit_log.NewLogfmtLogger(logging.NewWrapper(am.logger))
am.gokitLogger = logging.NewWrapper(am.logger)
am.fileStore = NewFileStore(am.orgID, kvStore, am.WorkingDirPath())
nflogFilepath, err := am.fileStore.FilepathFor(context.TODO(), notificationLogFilename)