Skip to content

Commit 38700f6

Browse files
author
Alejandro Casanovas
committed
logging resumable upload expiration datetime for debug googleapis#326
1 parent 302c4a0 commit 38700f6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

O365/drive.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,10 @@ def upload_file(self, item, chunk_size=DEFAULT_UPLOAD_CHUNK_SIZE):
11981198
data = response.json()
11991199

12001200
upload_url = data.get(self._cc('uploadUrl'), None)
1201+
log.info('Resumable upload on url: {}'.format(upload_url))
1202+
expiration_date = data.get(self._cc('expirationDateTime'), None)
1203+
if expiration_date:
1204+
log.info('Expiration Date for this upload url is: {}'.format(expiration_date))
12011205
if upload_url is None:
12021206
log.error('Create upload session response without '
12031207
'upload_url for file {}'.format(item.name))

0 commit comments

Comments
 (0)