Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrnswanberg committed Dec 15, 2020
1 parent 79ef304 commit af7dc97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wandb/sdk/internal/internal_api.py
Expand Up @@ -1207,6 +1207,8 @@ def upload_file(self, url, file, callback=None, extra_headers={}):
raise CommError("%s is an empty file" % file.name)
try:
response = requests.put(url, data=progress, headers=extra_headers)
print(response.content)
logger.info(response.content)
response.raise_for_status()
except requests.exceptions.RequestException as e:
logger.error("upload_file exception {} {}".format(url, e))
Expand Down

0 comments on commit af7dc97

Please sign in to comment.