From 88961051b1da52ab4b373ef3f9f880c4e19d197c Mon Sep 17 00:00:00 2001 From: Max Leonard Inden Date: Sun, 16 Jul 2017 20:16:49 +0200 Subject: [PATCH] Add current time to go webhook standard output This is just a small addition for better debugging of notifications send by Alertmanager. --- examples/webhook/echo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/webhook/echo.go b/examples/webhook/echo.go index 43ccf1b4..0a44d245 100644 --- a/examples/webhook/echo.go +++ b/examples/webhook/echo.go @@ -3,8 +3,8 @@ package main import ( "bytes" "encoding/json" - "fmt" "io/ioutil" + "log" "net/http" ) @@ -19,6 +19,6 @@ func main() { if err := json.Indent(&buf, b, " >", " "); err != nil { panic(err) } - fmt.Println(buf.String()) + log.Println(buf.String()) })) }