File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/java/org/hibernate/infra/replicate/jira/service/reporting Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,30 @@ private LoggingFailureCollector() {
1111
1212 @ Override
1313 public void warning (String details ) {
14- Log .warn (details );
14+ Log .warn (escape ( details ) );
1515 }
1616
1717 @ Override
1818 public void warning (String details , Exception exception ) {
19- Log .warnf (exception , details );
19+ Log .warnf (exception , escape ( details ) );
2020 }
2121
2222 @ Override
2323 public void critical (String details ) {
24- Log .error (details );
24+ Log .error (escape ( details ) );
2525 }
2626
2727 @ Override
2828 public void critical (String details , Exception exception ) {
29- Log .errorf (exception , details );
29+ Log .errorf (exception , escape ( details ) );
3030 }
3131
3232 @ Override
3333 public void close () {
3434 // do nothing, we've already logged all
3535 }
36+
37+ private String escape (String s ) {
38+ return s .replace ('{' , '[' ).replace ('}' , ']' );
39+ }
3640}
You can’t perform that action at this time.
0 commit comments