Browse Source

More logging

pull/36/head
Kegan Dougal 8 years ago
parent
commit
4d9574e6da
  1. 1
      src/github.com/matrix-org/go-neb/services/github/github.go

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

@ -371,6 +371,7 @@ func getTokenForUser(realmID, userID string) (string, error) {
} }
func removeHook(logger *log.Entry, cli *github.Client, owner, repo, webhookEndpointURL string) { func removeHook(logger *log.Entry, cli *github.Client, owner, repo, webhookEndpointURL string) {
logger.WithField("endpoint", webhookEndpointURL).Print("Removing hook with endpoint")
// Get a list of webhooks for this owner/repo and find the one which has the // Get a list of webhooks for this owner/repo and find the one which has the
// same endpoint URL which is what github uses to determine equivalence. // same endpoint URL which is what github uses to determine equivalence.
hooks, _, err := cli.Repositories.ListHooks(owner, repo, nil) hooks, _, err := cli.Repositories.ListHooks(owner, repo, nil)

Loading…
Cancel
Save