From 1a4081a312fb6ef4a3ccf856ca5993d0a7b127d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Wed, 8 Feb 2023 15:31:06 +0100 Subject: [PATCH] Log incoming, parsed alert --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 00490b4..0a19912 100644 --- a/main.go +++ b/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 { -- 2.44.0