DEBUG: log the response status code on upload

Signed-off-by: Sumner Evans <sumner@beeper.com>
log-resp-statuscode
Sumner Evans 2022-09-14 22:41:24 -06:00
parent 2527377f69
commit 4a46f4e583
No known key found for this signature in database
GPG Key ID: 8904527AB50022FD
1 changed files with 1 additions and 0 deletions

View File

@ -1309,6 +1309,7 @@ func (cli *Client) UploadMedia(data ReqUploadMedia) (*RespMediaUpload, error) {
// should we accept more status codes?
if resp.StatusCode >= 200 && resp.StatusCode < 300 {
cli.Logger.Debugfln("response to upload: %d", resp.StatusCode)
break
}