Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add logging if method fails
  • Loading branch information
st31ny committed Oct 27, 2019
commit 8dab28021585e72d3a2634f10c0423ad20d2ec68
1 change: 1 addition & 0 deletions jsonrpcserver/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def handle_exceptions(request: Request, debug: bool) -> Generator:
debug=True,
)
except Exception as exc: # Other error inside method - server error
request_logger.exception("Error in method {!r} for request with id {}".format(request.method, request.id))
handler.response = ExceptionResponse(exc, id=request.id, debug=debug)
finally:
if request.is_notification:
Expand Down