Skip to content

Commit

Permalink
Fix unnecessary use of printf
Browse files Browse the repository at this point in the history
  • Loading branch information
moorereason committed Feb 17, 2018
1 parent 4f9ed43 commit cfed5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
ok, err = matchedHook.TriggerRule.Evaluate(&headers, &query, &payload, &body, r.RemoteAddr)
if err != nil {
msg := fmt.Sprintf("[%s] error evaluating hook: %s", rid, err)
log.Printf(msg)
log.Print(msg)
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprintf(w, "Error occurred while evaluating hook rules.")
return
Expand Down

0 comments on commit cfed5cf

Please sign in to comment.