Closed jeffreye closed 5 months ago
Hi @jeffreye ! Thanks for the detailed report. That seems like an oversight indeed, that I think should be relatively straightforward to resolve. Right here is where we'd want to make an exception for Markers, if they're the first argument passed in: https://github.com/openrewrite/rewrite-logging-frameworks/blob/b46bf0b8572e2dbdc23a8ae827519321f244e8de/src/main/java/org/openrewrite/java/logging/ParameterizedLogging.java#L101
Simplest would be to not make any changes just yet; a little more complicated to make the correct change when markers are involved for the rest of the arguments.
Would you be willing to help out with a draft PR containing just a unit test as seen here? https://github.com/openrewrite/rewrite-logging-frameworks/blob/b46bf0b8572e2dbdc23a8ae827519321f244e8de/src/test/java/org/openrewrite/java/logging/ParameterizedLoggingTest.java#L43-L68
Then we can see from there which next steps to take to see this resolved.
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project.
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
What did you see instead?
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?