Skip to content
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

SLF4J_FORMAT_SHOULD_BE_CONST mitigation #501

Open
hanneskaeufler opened this issue Nov 27, 2023 · 0 comments
Open

SLF4J_FORMAT_SHOULD_BE_CONST mitigation #501

hanneskaeufler opened this issue Nov 27, 2023 · 0 comments

Comments

@hanneskaeufler
Copy link

This is more a question that anything else, but what is a mitigation for e.g.

log.error(messageSource.getMessage("database.access.error", null, Locale.getDefault()), e);

so when the message really is coming from a method call or similar? Is there an alternative pattern other than to disable the warning in those instances? Thanks!

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

No branches or pull requests

1 participant