BrowserUse_and_ComputerUse_.../gateway/platforms
aydnOktay 9149c34a26 refactor(slack): replace print statements with structured logging
Replaces all ad-hoc print() calls in the Slack gateway adapter with
proper logging.getLogger(__name__) calls, matching the pattern already
used by every other platform adapter (telegram, discord, whatsapp,
signal, homeassistant).

Changes:
- Add import logging + module-level logger
- Use logger.error for failures, logger.warning for non-critical
  fallbacks, logger.info for status, logger.debug for routine ops
- Add exc_info=True for full stack traces on all error/warning paths
- Use %s format strings (lazy evaluation) instead of f-strings
- Wrap disconnect() in try/except for safety
- Add structured context (file paths, channel IDs, URLs) to log messages
- Convert document handling prints added after the original PR

Cherry-picked from PR #778 by aydnOktay, rebased onto current main
with conflict resolution and extended to cover document/video methods
added since the PR was created.

Co-authored-by: aydnOktay <xaydinoktay@gmail.com>
2026-03-11 05:34:43 -07:00
..
__init__.py Enhance CLI with multi-platform messaging integration and configuration management 2026-02-02 19:01:51 -08:00
ADDING_A_PLATFORM.md docs: add platform integration checklist for new gateway adapters 2026-03-08 21:20:06 -07:00
base.py fix: add **kwargs to base/telegram media send methods for metadata routing 2026-03-11 03:24:39 -07:00
discord.py Merge PR #761: Improve Discord gateway error handling and logging 2026-03-11 00:35:31 -07:00
homeassistant.py fix: forward thread_id to Telegram adapter + update send_typing signatures 2026-03-10 06:26:32 -07:00
signal.py fix(signal): align send() signature with base class (content, reply_to, metadata) 2026-03-10 15:18:26 -07:00
slack.py refactor(slack): replace print statements with structured logging 2026-03-11 05:34:43 -07:00
telegram.py fix: add **kwargs to base/telegram media send methods for metadata routing 2026-03-11 03:24:39 -07:00
whatsapp.py fix: replace blocking time.sleep with await asyncio.sleep in WhatsApp connect 2026-03-11 02:51:49 -07:00