mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-11 16:14:52 +00:00
Fix unnecessary use of printf
This commit is contained in:
parent
4f9ed434c5
commit
cfed5cfe4b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue