Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Cleanup top level request exception logging #4669

Merged
merged 2 commits into from
Feb 18, 2019
Merged

Conversation

erikjohnston
Copy link
Member

Firstly, we always logged that the request was being handled via
JsonResource._async_render, so we change that to use the servlet name
we add to the request.

Secondly, we pass the exception information to the logger rather than
formatting it manually. This makes it consistent with other exception
logging, allwoing logging hooks and formatters to access the exception
information.

Firstly, we always logged that the request was being handled via
`JsonResource._async_render`, so we change that to use the servlet name
we add to the request.

Secondly, we pass the exception information to the logger rather than
formatting it manually. This makes it consistent with other exception
logging, allwoing logging hooks and formatters to access the exception
information.
@codecov-io
Copy link

Codecov Report

Merging #4669 into develop will decrease coverage by <.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #4669      +/-   ##
===========================================
- Coverage    75.27%   75.26%   -0.01%     
===========================================
  Files          338      338              
  Lines        34626    34626              
  Branches      5670     5670              
===========================================
- Hits         26064    26061       -3     
- Misses        6966     6969       +3     
  Partials      1596     1596

@erikjohnston erikjohnston requested a review from a team February 18, 2019 15:56
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely convinced by fishing request_metrics out of the request object, but lgtm

@erikjohnston
Copy link
Member Author

Me neither, but thought of refactoring all of this when its just there didn't appeal right now.

@erikjohnston erikjohnston merged commit 028267a into develop Feb 18, 2019
@erikjohnston erikjohnston deleted the erikj/log_exception branch March 5, 2019 13:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants