Log incoming, parsed alert

This commit is contained in:
Thorben Günther 2023-02-08 15:31:06 +01:00
parent 0508f37896
commit 1a4081a312
No known key found for this signature in database
GPG key ID: 415CD778D8C5AFED

View file

@ -240,6 +240,10 @@ func (rcv *receiver) handleWebhooks(w http.ResponseWriter, r *http.Request) {
return
}
if rcv.logger.Level() == log.Debug {
rcv.logger.Debugf("Received alert %+v", event)
}
if rcv.cfg.alertMode == single {
notifications := rcv.singleAlertNotifications(&event)
for _, n := range notifications {