Skip to content

Commit

Permalink
[fix] Replace UTF-8 dash characters
Browse files Browse the repository at this point in the history
Two log messages contained an UTF-8 dash characters that crashed logging
in some environment.
  • Loading branch information
bruntib committed Apr 14, 2024
1 parent 586cdaf commit 132cee8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def upgrade_reports():
num_batches = report_count // REPORT_UPDATE_CHUNK_SIZE + 1

def _print_progress(batch: int):
LOG.info("[%d/%d] Upgrading 'reports'... (%d%d) %.0f%% done.",
LOG.info("[%d/%d] Upgrading 'reports'... (%d-%d) %.0f%% done.",
batch, num_batches,
(REPORT_UPDATE_CHUNK_SIZE * i) + 1,
(REPORT_UPDATE_CHUNK_SIZE * (i + 1))
Expand Down Expand Up @@ -479,7 +479,7 @@ def downgrade_reports():
num_batches = report_count // REPORT_UPDATE_CHUNK_SIZE + 1

def _print_progress(batch: int):
LOG.info("[%d/%d] Downgrading 'reports'... (%d%d) %.0f%% done.",
LOG.info("[%d/%d] Downgrading 'reports'... (%d-%d) %.0f%% done.",
batch, num_batches,
(REPORT_UPDATE_CHUNK_SIZE * i) + 1,
(REPORT_UPDATE_CHUNK_SIZE * (i + 1))
Expand Down

0 comments on commit 132cee8

Please sign in to comment.