From bd42a839237d33f6a955b6b82f1ad95818c924d9 Mon Sep 17 00:00:00 2001 From: Adam Pippin Date: Tue, 31 Mar 2020 13:42:43 -0700 Subject: [PATCH] Provide some feedback during long list operations --- mass_s3/mass_s3.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mass_s3/mass_s3.py b/mass_s3/mass_s3.py index b2112a2..095361d 100644 --- a/mass_s3/mass_s3.py +++ b/mass_s3/mass_s3.py @@ -82,6 +82,8 @@ class MassS3: continue objects.append(item['Key']) + self.logger.debug('Retrieved ' + str(len(list_objects_response['Contents'])) + ' objects; kept ' + str(len(objects)) + ' so far') + if 'NextContinuationToken' in list_objects_response: args['ContinuationToken'] = list_objects_response['NextContinuationToken'] else: