Commit 1aa3952
authored
fix: any last argument matching
In SLF4J, the last argument of the logging methods will be treated specially and removed from the formatted string argument array if it's a Throwable.
When the last argument was a `.toString()` call we stripped it even if it was a `Throwable` which changed the behaviour.
https://www.slf4j.org/faq.html#paramExceptionThrowable.toString() is left as is (#229)c1 parent 6d64cce commit 1aa3952
File tree
2 files changed
+2
-2
lines changed- src
- main/java/org/openrewrite/java/logging/slf4j
- test/java/org/openrewrite/java/logging/slf4j
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments