Skip to content

Commit a682381

Browse files
committed
Adding println for debugging in our production experiments
1 parent 205a579 commit a682381

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,10 @@ func newProxy(redirURL string, yGen, tGen uint64, printGC bool) http.HandlerFunc
219219
}
220220
t := newTransport(target.String(), yGen, tGen, printGC)
221221
return func(w http.ResponseWriter, req *http.Request) {
222+
oldURL := req.URL.String()
222223
req.URL.Scheme = target.Scheme
223224
req.URL.Host = target.Host
225+
fmt.Printf("Target:%s ChangedURL:%s OldURL:%s\n", target.String(), req.URL.String(), oldURL)
224226
if _, ok := req.Header["User-Agent"]; !ok {
225227
// explicitly disable User-Agent so it's not set to default value
226228
req.Header.Set("User-Agent", "")

0 commit comments

Comments
 (0)