mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-04 18:32:44 +00:00
fix(slack): use logger.exception to capture full traceback
This commit is contained in:
parent
c53deecdb1
commit
b93b77a485
@ -192,8 +192,8 @@ class SlackChannel(BaseChannel):
|
||||
}
|
||||
},
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error("Error handling Slack message from {}: {}", sender_id, e)
|
||||
except Exception:
|
||||
logger.exception("Error handling Slack message from {}", sender_id)
|
||||
|
||||
def _is_allowed(self, sender_id: str, chat_id: str, channel_type: str) -> bool:
|
||||
if channel_type == "im":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user