This commit is contained in:
Shreyas Goenka 2025-03-02 17:18:25 +01:00
parent da7e9e23ca
commit 6492404d38
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ func Upload(ctx context.Context) (*ResponseBody, error) {
return resp, nil
}
// Log API output if the upload failed for debugging purposes.
fmt.Fprintf(os.Stderr, "attempt %d:\n", i)
fmt.Fprintf(os.Stderr, "err: %s\n", err)
fmt.Fprintf(os.Stderr, "response body: %#v\n", resp)