-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPI Exposed in info log #3222
Comments
The The parameter masking is kinda not related to this issue and there are many places where we print messages with their payload and headers. |
Leaving the logging level at info for the message is agreeable. However, in my current use case, logging the payload and headers in the info log is exposing NPI in the log file. For now my work around is just to set the logger to off. |
NPI - Non Public Information |
OK. Understandable. So, we can treat this issue like: Whenever we log a content of the message under I don't say that we are going to do that because this is not a trivial task and we also throw exceptions in many places with the message caused an error. How to be over here then? Wouldn't it be better to not have an INFO or DEBUG logging level for the framework and log reasonable messages using your own components ? |
I understand that this would be a large undertaking. But what you describe above is exactly what I am thinking and we do have logging in our own components. For now the work around is acceptable, but if there is an issue related to the framework it may be more difficult trace. |
Well, for that reason an issue is going to be logged under |
I would like to hear your opinion about this issue. Thanks |
Maybe ask Spring Framework to add: public interface MessageToStringFunction extends Function<Message<?>, String> {
} and ?? |
Duplicate of #9416 |
Affects Version(s): <Spring Integration version>
Current
In org.springframework.integration.handler.support.MessagingMethodInvokerHelper.fallbackToInvokeExpression(), the message is logged using LOGGER.info, this should be LOGGER.warn.
Also, this log message currently fully exposes the contents of the ParametersWrapper 'parameters' in the INFO logs and I believe this is undesired, as parameters is exposing its state too openly for this logging level and should be split from the above into LOGGER.debug
The text was updated successfully, but these errors were encountered: