From a612493f58548596812e180ca4b1f8fbb0e08b22 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 22 Jul 2015 13:12:37 -0700 Subject: [PATCH] Include Sha / Branch in hook logs --- server/handler/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handler/hook.go b/server/handler/hook.go index f2f2860a4..8ac4d4c13 100644 --- a/server/handler/hook.go +++ b/server/handler/hook.go @@ -121,7 +121,7 @@ func PostHook(c web.C, w http.ResponseWriter, r *http.Request) { // inserts the commit into the database if err := datastore.PostCommit(ctx, &commit); err != nil { - log.Printf("Unable to persist commit. %s\n", err) + log.Printf("Unable to persist commit %s@%s. %s\n", commit.Sha, commit.Branch, err) w.WriteHeader(http.StatusBadRequest) return }