mirror of
https://github.com/Xevion/scla-unsubscribe.git
synced 2025-12-10 02:08:29 -06:00
Use full URL in request log
This commit is contained in:
@@ -69,7 +69,7 @@ func DoRequestNoRead(req *http.Request) (*http.Response, error) {
|
||||
Wait(limiter, req.Context())
|
||||
|
||||
// Log the request
|
||||
log.Debug().Str("method", req.Method).Str("host", req.Host).Str("path", req.URL.Path).Msg("Request")
|
||||
log.Debug().Str("method", req.Method).Str("host", req.Host).Str("url", req.URL.String()).Msg("Request")
|
||||
|
||||
// Send the request (while acquiring timings)
|
||||
start := time.Now()
|
||||
@@ -95,8 +95,7 @@ func DoRequest(req *http.Request) (*http.Response, []byte, error) {
|
||||
Wait(limiter, req.Context())
|
||||
|
||||
// Log the request
|
||||
log.Debug().Str("method", req.Method).Str("host", req.Host).Str("path", req.URL.Path).Msg("Request")
|
||||
|
||||
log.Debug().Str("method", req.Method).Str("host", req.Host).Str("url", req.URL.String()).Msg("Request")
|
||||
// Send the request (while acquiring timings)
|
||||
start := time.Now()
|
||||
resp, err := client.Do(req)
|
||||
|
||||
Reference in New Issue
Block a user