Skip to content

Commit

Permalink
log errors as errors, not infos
Browse files Browse the repository at this point in the history
  • Loading branch information
leolivier committed Sep 10, 2024
1 parent 7955439 commit 593d634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auto_po_lyglot/po_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def main():
sleep(1.0) # Sleep for 1 second to avoid rate limiting
nb_translations += 1
except Exception as e:
logger.info(f"Error: {e}")
logger.error(f"Error: {e}")
# Save the new .po file even if there was an error to not lose what was translated
po.save(output_file)
percent_translated = round(nb_translations / len(po) * 100, 2)
Expand Down

0 comments on commit 593d634

Please sign in to comment.