~xenrox/ntfy-alertmanager

1a4081a312fb6ef4a3ccf856ca5993d0a7b127d0 — Thorben Günther 1 year, 2 months ago 0508f37
Log incoming, parsed alert
1 files changed, 4 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +4 -0
@@ 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 {