Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
update some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Mar 16, 2017
1 parent f92f75b commit d4eb0d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions s3sfe/filesyncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def run(self, file_paths, exclude_paths=[]):
meta_dt = dtnow()
files = self._file_meta(all_files)
total_size = sum(files[f][0] for f in files.keys())
logger.debug('Source: %d files total, %d bytes total',
logger.info('Source: %d files total, %d bytes total',
len(files), total_size)
query_dt = dtnow()
s3files = self.s3.get_filelist()
logger.debug('S3: %d files total', len(s3files))
logger.info('S3: %d files total', len(s3files))
calc_dt = dtnow()
to_upload = self._files_to_upload(files, s3files)
upload_dt = dtnow()
Expand Down Expand Up @@ -303,7 +303,7 @@ def _files_to_upload(self, local_files, s3_files):
# md5sums match
continue
files[k] = local_files[k]
logger.debug('Found %d files to upload', len(files))
logger.info('Found %d files to upload', len(files))
return files

def _upload_files(self, files):
Expand All @@ -319,6 +319,7 @@ def _upload_files(self, files):
bytes uploaded)
:rtype: tuple
"""
logger.info('Beginning upload of %d files', len(files))
errored = []
total_bytes = 0
for f in sorted(files.keys()):
Expand Down

0 comments on commit d4eb0d1

Please sign in to comment.