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 (
|
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())
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue