Skip to content

Commit afff569

Browse files
committed
add request debug logs
1 parent 06837bb commit afff569

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkg/enex/methods.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,13 @@ func (e *EnexFile) UploadFromNoteChannel(noteChannel, failedNoteChannel chan Not
345345
req.Header.Set("Content-Type", writer.FormDataContentType())
346346

347347
// Send the request
348+
slog.Debug("sending POST request")
349+
350+
slog.Debug("request details",
351+
"method", req.Method,
352+
"url", req.URL.String(),
353+
"headers", req.Header)
354+
348355
resp, err := e.client.Do(req)
349356
if err != nil {
350357
failedNoteChannel <- note

0 commit comments

Comments
 (0)