Commits

b7w committed 7754da7

Add some debug messages

  • Participants
  • Parent commits 518e3ac
  • Branches dev

Comments (0)

Files changed (1)

                 for tmp_file, part in archive.archive_to(config.TMP_PATH, archive.file_name):
                     key = storage.get_key(folder_config.BUCKET, folder_config.REMOTE, archive, part)
                     if not dry_run:
+                        if debug:
+                            print('Start /{0}/{1}  {{part: {2}}}'
+                                  .format(folder_config.REMOTE, package.path, part or '000'))
                         storage.upload(key, archive, tmp_file, part)
                     package_size = package.size / 1024 ** 2
                     print('Uploaded /{0}/{1}  {{count: {2}, size: {3}mb, part: {4}}}'