From 0ed54031d1c70cb9400bcb4879c832d682b7f269 Mon Sep 17 00:00:00 2001 From: idanoo Date: Mon, 30 Jan 2023 11:29:32 +1300 Subject: [PATCH] Add logging for invalid data --- internal/gomastodonstats/matrix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/gomastodonstats/matrix.go b/internal/gomastodonstats/matrix.go index a0a3524..8965fd2 100644 --- a/internal/gomastodonstats/matrix.go +++ b/internal/gomastodonstats/matrix.go @@ -15,6 +15,7 @@ type MatrixWebhook struct { func sendToMatrix(m []metric) { if MATRIX_WEBHOOK_URL == "" { + log.Println("Skipping posting to Matrix as missing env vars") return }