diff --git a/util/migrate/allocator.py b/util/migrate/allocator.py index 64fea9ea4..6e531d251 100644 --- a/util/migrate/allocator.py +++ b/util/migrate/allocator.py @@ -140,7 +140,7 @@ def yield_random_entries(batch_query, primary_key_field, batch_size, max_id): allocator.mark_completed(start_index, max_id + 1) continue - logger.info('Found %s candidates, processing block') + logger.info('Found %s candidates, processing block', len(all_candidates)) for candidate in all_candidates: abort_early = Event() yield candidate, abort_early diff --git a/util/migrate/backfill_content_checksums.py b/util/migrate/backfill_content_checksums.py index 2b2c0cdca..c03bb13b6 100644 --- a/util/migrate/backfill_content_checksums.py +++ b/util/migrate/backfill_content_checksums.py @@ -115,5 +115,7 @@ def backfill_content_checksums(): if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG) - # logging.getLogger('peewee').setLevel(logging.CRITICAL) + logging.getLogger('peewee').setLevel(logging.WARNING) + logging.getLogger('boto').setLevel(logging.WARNING) + logging.getLogger('data.database').setLevel(logging.WARNING) backfill_content_checksums()