Skip to content

Commit

Permalink
Add current time to go webhook standard output
Browse files Browse the repository at this point in the history
This is just a small addition for better debugging of notifications send
by Alertmanager.
  • Loading branch information
mxinden committed Jul 22, 2017
1 parent ca8d73a commit 8896105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/webhook/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
)

Expand All @@ -19,6 +19,6 @@ func main() {
if err := json.Indent(&buf, b, " >", " "); err != nil {
panic(err)
}
fmt.Println(buf.String())
log.Println(buf.String())
}))
}

0 comments on commit 8896105

Please sign in to comment.