Skip to content

fix(gateway): replace print() with logger calls in BasePlatformAdapter#3669

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-ec5223e1
Mar 29, 2026
Merged

fix(gateway): replace print() with logger calls in BasePlatformAdapter#3669
teknium1 merged 1 commit intomainfrom
hermes/hermes-ec5223e1

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Salvage of PR #3616 (memosr).

Converts 6 print() calls in gateway/platforms/base.py to proper logger calls. These fire on every incoming message across all gateway platforms — they should go through the logging system, not stdout.

Also removes the now-redundant import traceback; traceback.print_exc() since logger.error(..., exc_info=True) already captures the full traceback.

1633 gateway tests pass.

Closes #3616

Co-Authored-By: memosr memosr@users.noreply.github.com

Converts 6 print() calls to proper logger calls in base.py:
- photo follow-up queuing → logger.debug
- interrupt trigger → logger.debug
- media send failure → logger.warning
- media send exception → logger.warning
- queued message processing → logger.debug
- message handler exception → logger.error(exc_info=True)

Also removes redundant traceback.print_exc() since exc_info=True
already captures the full traceback in the log.
@teknium1 teknium1 merged commit c6e3084 into main Mar 29, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants