From fc1a9882f9b6ac6824b13cf238f3fa29ea35183d Mon Sep 17 00:00:00 2001 From: idanoo Date: Sun, 20 Nov 2022 18:40:30 +1300 Subject: [PATCH] Logs --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ab30cf7..3b774e0 100644 --- a/main.go +++ b/main.go @@ -108,12 +108,13 @@ func sendWebhook(msgText string) error { if err != nil { return err } + + log.Printf("Sending %s to %s", b, MATRIX_WEBHOOK_URL+"/"+MATRIX_CHANNEL) req, err := http.NewRequest("POST", MATRIX_WEBHOOK_URL+"/"+MATRIX_CHANNEL, bytes.NewBuffer(b)) if err != nil { return err } - req.Header.Set("X-Custom-Header", "myvalue") req.Header.Set("Content-Type", "application/json") client := &http.Client{}