mirror of
https://github.com/Xevion/scla-unsubscribe.git
synced 2025-12-11 00:08:32 -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())
|
Wait(limiter, req.Context())
|
||||||
|
|
||||||
// Log the request
|
// 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)
|
// Send the request (while acquiring timings)
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
@@ -95,8 +95,7 @@ func DoRequest(req *http.Request) (*http.Response, []byte, error) {
|
|||||||
Wait(limiter, req.Context())
|
Wait(limiter, req.Context())
|
||||||
|
|
||||||
// Log the request
|
// 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)
|
// Send the request (while acquiring timings)
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
|
|||||||
Reference in New Issue
Block a user