make logging not use f-str, change others to f-str (#22882)

This commit is contained in:
Asuka Minato
2025-07-25 11:32:48 +09:00
committed by GitHub
parent 570aee5fe6
commit a189d293f8
164 changed files with 557 additions and 563 deletions

View File

@@ -16,11 +16,11 @@ def delete_account_task(account_id):
try:
BillingService.delete_account(account_id)
except Exception as e:
logger.exception(f"Failed to delete account {account_id} from billing service.")
logger.exception("Failed to delete account %s from billing service.", account_id)
raise
if not account:
logger.error(f"Account {account_id} not found.")
logger.error("Account %s not found.", account_id)
return
# send success email
send_deletion_success_task.delay(account.email)