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:
parent
ca8d73a59b
commit
88961051b1
|
@ -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())
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue