Closed hsong-rh closed 4 years ago
When exception is raised, the place to log error messages has lost the request context. This PR moves the log call within request context.
@lindgrenj6 @mkanoor Please review
Checked commit https://github.com/hsong-rh/manageiq-api-common/commit/64057f6900162cf3b1f17d0860b0e05c1f36b275 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.35.0, and yamllint 3 files checked, 0 offenses detected Everything looks fine. :star:
When exception is raised, the place to log error messages has lost the request context. This PR moves the log call within request context.