snazy opened a new pull request, #2531:
URL: https://github.com/apache/polaris/pull/2531

   The above test asserts the the log record passed to 
`org.jboss.logmanager.Logger#logRaw(org.jboss.logmanager.ExtLogRecord)`. For 
the sake of this test, both the `IcebergJsonProcessingExceptionMapper` and 
`IcebergExceptionMapper` have a visible-for-testing function `getLogger()` to 
provide a mocked logger. `getLogger()` however is used for "all the logging", 
which makes the behavior `verify(JBOSS_LOGGER).logRaw(argThat(...))` 
"interesting" - the test fails with #2461 although no related dependencies have 
changed in that PR.
   
   But eventually the test failure's caused by using `getLogger()` for all 
logging, which may provide the _wrong_ log record and cause the test to fail.
   
   This change renames the `getLogger()` functions to make their special 
meaning clear, and adds some clarifying comments in the code.
   
   Also adding some more test cases for the various exception mapper code paths.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to