Add current time to go webhook standard output

This is just a small addition for better debugging of notifications send
by Alertmanager.
This commit is contained in:
Max Leonard Inden 2017-07-16 20:16:49 +02:00
parent ca8d73a59b
commit 88961051b1
No known key found for this signature in database
GPG Key ID: 5403C5464810BC26
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ package main
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt"
"io/ioutil" "io/ioutil"
"log"
"net/http" "net/http"
) )
@ -19,6 +19,6 @@ func main() {
if err := json.Indent(&buf, b, " >", " "); err != nil { if err := json.Indent(&buf, b, " >", " "); err != nil {
panic(err) panic(err)
} }
fmt.Println(buf.String()) log.Println(buf.String())
})) }))
} }