Remove hardcoded master_debug = True flag from api_calls.py
#28
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#28
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?
api_calls.py:20— Every API request/response (up to 300,000 chars vialog_return_value) is logged at INFO level regardless of LOG_LEVEL. Performance and log volume concern in production.Fixed in PR #58: #58
Approach: Removed
master_debug = Trueand replaced all 5logger.info(...) if master_debug else logger.debug(...)ternary calls with unconditionallogger.debug(...). Also fixedlog_return_value()to uselogger.debuginstead oflogger.info, and removed the associated dead commented-out code. API requests/responses will now only appear in logs whenLOG_LEVEL=DEBUGis set.