Skip to content

Commit

Permalink
construction: Add exc_info to error log for debugging
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Jan 29, 2025
1 parent 00453f8 commit f1bcd57
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions acapy_agent/core/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ async def handle_v1_message(
inbound_message: The inbound message instance
send_outbound: Async function to send outbound messages
# Raises:
# MessageParseError: If the message type version is not supported
Returns:
The response from the handler
Expand All @@ -193,7 +190,9 @@ async def handle_v1_message(
except ProblemReportParseError:
pass # avoid problem report recursion
except MessageParseError as e:
self.logger.error(f"Message parsing failed: {str(e)}, sending problem report")
self.logger.error(
f"Message parsing failed: {str(e)}, sending problem report", exc_info=e
)
error_result = ProblemReport(
description={
"en": str(e),
Expand Down

0 comments on commit f1bcd57

Please sign in to comment.