summaryrefslogtreecommitdiff
path: root/internal/http/http.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-09-02 15:14:02 +0200
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-09-02 15:14:02 +0200
commit5e05784cab953b0e24609398106dd33da7738d21 (patch)
treead6f1a8eaa16a5dc38d7849941abe6537d48d00b /internal/http/http.go
parent53b40a5353df751d10c8480749b2c1929895c3e6 (diff)
client: Log more in debug and increase rotation to 10MB
Diffstat (limited to 'internal/http/http.go')
-rw-r--r--internal/http/http.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/http/http.go b/internal/http/http.go
index 555c5bb..7b9b70d 100644
--- a/internal/http/http.go
+++ b/internal/http/http.go
@@ -7,6 +7,7 @@ import (
"errors"
"fmt"
"io"
+ "log/slog"
"net/http"
"net/url"
"path"
@@ -203,6 +204,8 @@ func (c *Client) Do(ctx context.Context, method string, urlStr string, opts *Opt
ctx, cncl := context.WithTimeout(ctx, timeout)
defer cncl()
+ slog.Debug("sending request", "method", method, "url", urlStr)
+
// Create request object with the body reader generated from the optional arguments
req, err := http.NewRequestWithContext(ctx, method, urlStr, optionalBodyReader(opts))
if err != nil {