Skip to content

Commit

Permalink
fix:make use of logger.exception
Browse files Browse the repository at this point in the history
  • Loading branch information
IronJam11 committed Feb 4, 2025
1 parent bf0123c commit 6d9acda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels/generic/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def http_request(self, message):
try:
await self.handle(b"".join(self.body))
except Exception:
logger.error(f"Error in handle(): {traceback.format_exc()}")
logger.exception(f"Error in handle(): {traceback.format_exc()}")
await self.send_response(500, b"Internal Server Error")
raise
finally:
Expand Down

0 comments on commit 6d9acda

Please sign in to comment.