Replace print() debug statements with logger calls in db_engine.py #22

Open
opened 2026-02-20 06:49:48 +00:00 by cal · 1 comment
Owner

app/db_engine.py:462, 523, 584, 890 — Multiple print() 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

`app/db_engine.py:462, 523, 584, 890` — Multiple `print()` 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
cal added the
ai-working
label 2026-03-06 00:31:04 +00:00
cal added
ai-pr-opened
and removed
ai-working
labels 2026-03-06 00:34:28 +00:00
Author
Owner

Fixed in PR #53.

Replaced all 4 print() calls in app/db_engine.py with logger.error() calls using the existing module-level logger = logging.getLogger('discord_app'). The messages now route through the rotating file handler at /tmp/sba-database.log instead of being silently dropped in the container.

Fixed in PR #53. Replaced all 4 `print()` calls in `app/db_engine.py` with `logger.error()` calls using the existing module-level `logger = logging.getLogger('discord_app')`. The messages now route through the rotating file handler at `/tmp/sba-database.log` instead of being silently dropped in the container.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/major-domo-database#22
No description provided.