Log incoming, parsed alert
This commit is contained in:
parent
0508f37896
commit
1a4081a312
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue