Update hook.go

added logging when post-commit hook received
This commit is contained in:
Brad Rydzewski 2014-08-07 11:23:12 -07:00
parent dc8d728812
commit 95c375dceb

View file

@ -1,6 +1,7 @@
package handler
import (
"log"
"net/http"
"strings"
@ -28,6 +29,7 @@ func NewHookHandler(users database.UserManager, repos database.RepoManager, comm
// GET /hook/:host
func (h *HookHandler) PostHook(w http.ResponseWriter, r *http.Request) error {
host := r.FormValue(":host")
log.Println("received post-commit hook.")
remoteServer, err := h.remotes.FindType(host)
if err != nil {