Browse Source

Log what the clients send us for debugging purposes

pull/36/head
Kegan Dougal 8 years ago
parent
commit
479055748c
  1. 2
      src/github.com/matrix-org/go-neb/api.go
  2. 2
      src/github.com/matrix-org/go-neb/services/github/github.go

2
src/github.com/matrix-org/go-neb/api.go

@ -136,7 +136,7 @@ type webhookHandler struct {
}
func (wh *webhookHandler) handle(w http.ResponseWriter, req *http.Request) {
log.WithField("path", req.URL.RawPath).Print("Incoming webhook request")
log.WithField("path", req.URL.Path).Print("Incoming webhook request")
segments := strings.Split(req.URL.Path, "/")
// last path segment is the service ID which we will pass the incoming request to,
// but we've base64d it.

2
src/github.com/matrix-org/go-neb/services/github/github.go

@ -213,6 +213,8 @@ func (s *githubService) Register() error {
"User %s does not have a Github auth session with realm %s.", s.ClientUserID, realm.ID())
}
log.Infof("%+v", s)
return nil
}

Loading…
Cancel
Save