Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log exception in RPC function regardless of exception type #53

Merged
merged 2 commits into from
Oct 21, 2016

Conversation

durden
Copy link
Contributor

@durden durden commented Oct 19, 2016

It's useful as a server-side developer to see the stack trace regardless if the error is a TypeError or not.

It's useful as a server-side developer to see the stack trace regardless if the error is a TypeError or not.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.616% when pulling 38a0162 on durden:patch-1 into 5605dc5 on pavlov99:master.

@pavlov99
Copy link
Owner

pavlov99 commented Oct 19, 2016

@durden, it makes sense. Do you think it would be better to add such message after data definition: https://github.com/pavlov99/json-rpc/pull/53/files#diff-3bba75d8de245bf7022bf313f2e5f02dL116 ? Current logging does not tell exception type and message.

This gives the exception message more context with the data that will be returned in response.
@durden
Copy link
Contributor Author

durden commented Oct 19, 2016

@pavlov99 Good point, updated the PR with your suggestion. Thanks for feedback!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.616% when pulling a1f17fe on durden:patch-1 into 5605dc5 on pavlov99:master.

@pavlov99 pavlov99 closed this Oct 21, 2016
@pavlov99 pavlov99 changed the base branch from master to develop October 21, 2016 05:25
@pavlov99 pavlov99 reopened this Oct 21, 2016
@pavlov99 pavlov99 changed the base branch from develop to master October 21, 2016 05:27
@pavlov99 pavlov99 merged commit 59b6193 into pavlov99:master Oct 21, 2016
@durden
Copy link
Contributor Author

durden commented Oct 25, 2016

Thanks for the merge! Do you have a set release schedule? Curious when this might be available as official on pypi. No rush, just curious.

pavlov99 added a commit that referenced this pull request Oct 28, 2017
Log exception in RPC function regardless of exception type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants