Replace print() debug statements with logger calls in db_engine.py
#22
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
app/db_engine.py:462, 523, 584, 890— Multipleprint()calls in core model methods bypass the rotating file logger. Examples:print(f'I could not drop {move.player.name}'),print(f'**Error** (db_engine player): {e}').Priority: low | Labels: tech-debt
Fixed in PR #53.
Replaced all 4
print()calls inapp/db_engine.pywithlogger.error()calls using the existing module-levellogger = logging.getLogger('discord_app'). The messages now route through the rotating file handler at/tmp/sba-database.loginstead of being silently dropped in the container.