From 4407c0190bb1c6e0e88d2c95e4083193746fbf0f Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Fri, 24 Apr 2020 15:32:33 -0500 Subject: [PATCH] Add request ID logging on missing command --- webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webhook.go b/webhook.go index aebf1f6..874b883 100644 --- a/webhook.go +++ b/webhook.go @@ -569,12 +569,12 @@ func handleHook(h *hook.Hook, rid string, headers, query, payload *map[string]in } if err != nil { - log.Printf("unable to locate command: '%s'", h.ExecuteCommand) + log.Printf("[%s] error locating command: '%s'", rid, h.ExecuteCommand) // check if parameters specified in execute-command by mistake if strings.IndexByte(h.ExecuteCommand, ' ') != -1 { s := strings.Fields(h.ExecuteCommand)[0] - log.Printf("use 'pass-arguments-to-command' to specify args for '%s'", s) + log.Printf("[%s] use 'pass-arguments-to-command' to specify args for '%s'", rid, s) } return "", err