From 38700f662262edbdd282663e8a5f162ec9a8a9ce Mon Sep 17 00:00:00 2001 From: Alejandro Casanovas Date: Thu, 10 Oct 2019 17:11:27 +0200 Subject: [PATCH] logging resumable upload expiration datetime for debug #326 --- O365/drive.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/O365/drive.py b/O365/drive.py index a3af649915970..1aaa82c7a2768 100644 --- a/O365/drive.py +++ b/O365/drive.py @@ -1198,6 +1198,10 @@ def upload_file(self, item, chunk_size=DEFAULT_UPLOAD_CHUNK_SIZE): data = response.json() upload_url = data.get(self._cc('uploadUrl'), None) + log.info('Resumable upload on url: {}'.format(upload_url)) + expiration_date = data.get(self._cc('expirationDateTime'), None) + if expiration_date: + log.info('Expiration Date for this upload url is: {}'.format(expiration_date)) if upload_url is None: log.error('Create upload session response without ' 'upload_url for file {}'.format(item.name))