Skip to content

Commit 9e3809a

Browse files
committed
Add logging to proxying
1 parent eda8bb1 commit 9e3809a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/github.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77
"net/url"
88
"regexp"
99
"strings"
10+
11+
"github.com/sirupsen/logrus"
1012
)
1113

1214
// GitHubGateway acts as a proxy to GitHub
@@ -47,6 +49,7 @@ func director(r *http.Request) {
4749
if r.Method != http.MethodOptions {
4850
r.Header.Set("Authorization", "Bearer "+accessToken)
4951
}
52+
logrus.Infof("Proxying to: %v", r.URL.String())
5053
}
5154

5255
func (gh *GitHubGateway) ServeHTTP(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)