From 7d9d3652ba067fa7dd5b6a397e3ca8ba466fde8c Mon Sep 17 00:00:00 2001 From: Adnan Hajdarevic Date: Tue, 13 Jan 2015 01:07:47 +0100 Subject: [PATCH] refactoring --- webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webhook.go b/webhook.go index 89aed6b..a6f8030 100644 --- a/webhook.go +++ b/webhook.go @@ -51,7 +51,7 @@ func main() { } func rootHandler() string { - return fmt.Sprintf("go-webhook %s running for %s serving %d hook(s)\n%+v", version, time.Since(appStart).String(), webhooks.Count(), webhooks) + return fmt.Sprintf("go-webhook %s running for %s serving %d hook(s)\n", version, time.Since(appStart).String(), webhooks.Count()) } func hookHandler(req *http.Request, params martini.Params) string { @@ -63,7 +63,7 @@ func hookHandler(req *http.Request, params martini.Params) string { err := decoder.Decode(&p) if err != nil { - return "Error occurred while parsing the payload :-(" + // log "Error occurred while parsing the payload :-(" } go func(id string, params interface{}) {