Skip to content

Conversation

@GeorgeBlackwell
Copy link
Collaborator

@GeorgeBlackwell GeorgeBlackwell commented Mar 18, 2025

I mirrored the changes by Lillie in this PR -> #383

@GeorgeBlackwell GeorgeBlackwell requested review from chrisbloe-nhse and shul1 and removed request for chrisbloe-nhse March 19, 2025 10:27
@grant-dot-dev
Copy link
Collaborator

Presuming the update and change of packaging to log4j-core , is like going from .net Framework -> .Net core ? hence the namespacing changes within some of the logging calls ?

@GeorgeBlackwell
Copy link
Collaborator Author

Presuming the update and change of packaging to log4j-core , is like going from .net Framework -> .Net core ? hence the namespacing changes within some of the logging calls ?

@grant-dot-dev I've got very limited Java knowledge but yes I think that's correct. It looks like they made the move a while back.

@Override
public BaseServerResponseException preProcessOutgoingException(RequestDetails theRequestDetails,
Throwable theException, HttpServletRequest theServletRequest) throws ServletException {
Throwable theException, HttpServletRequest theServletRequest) throws ServletException {

Choose a reason for hiding this comment

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

I'd suggest formatting the arguments like this once they start to get too long. Not enough for me to reject the PR but one to be aware of.

public BaseServerResponseException preProcessOutgoingException(
        RequestDetails theRequestDetails,
        Throwable theException, 
        HttpServletRequest theServletRequest
) throws ServletException {

Copy link

@AndyFlintNHS AndyFlintNHS left a comment

Choose a reason for hiding this comment

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

Just one comment about argument structuring but otherwise I'm happy with it. It's probably too big of a change for this codebase, but I'd suggest moving to Spring's @Slf4j or even @Log4j2 annotations rather than creating a LogManager object everywhere it's needed, but it's not a dealbreaker.

@GeorgeBlackwell GeorgeBlackwell removed the request for review from shul1 March 20, 2025 11:00
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.

4 participants