Skip to content

Conversation

@matsumo-and
Copy link

The ForwardedHeadersFilter class currently defines two Logger instances:

one is a static member

and the other is an instance member

Having both is redundant and can cause confusion.
This PR removes the instance-level Logger and uses the static one consistently.

}
catch (UnknownHostException e) {
this.logger.warn("Can not resolve host address, skipping Forwarded 'by' header", e);
this.log.warn("Can not resolve host address, skipping Forwarded 'by' header", e);
Copy link
Member

Choose a reason for hiding this comment

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

Should also remove this. since it is now referencing the static log

Copy link
Author

Choose a reason for hiding this comment

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

Thank you, @spencergibb !
I’ve removed this. and rebased onto main.

Signed-off-by: matsumo-and <[email protected]>
@matsumo-and matsumo-and force-pushed the remove_duplicate_logger branch from ae6067e to b668f4e Compare November 13, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants