Skip to content

Commit

Permalink
When using a formatted string, additional exception argument is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed May 9, 2024
1 parent b194a31 commit 5aea35b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/calimero/mgmt/ManagementClientImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import java.io.ByteArrayOutputStream;
import java.lang.System.Logger;
import java.nio.ByteBuffer;
import java.text.MessageFormat;
import java.time.Duration;
import java.util.ArrayDeque;
import java.util.ArrayList;
Expand Down Expand Up @@ -206,7 +207,7 @@ private void checkResponse(final FrameEvent e) {
catch (final RuntimeException rte) {
final var cemi = e.getFrame();
final var src = cemi instanceof final CEMILData cemild ? cemild.getDestination() : "cEMI server";
logger.log(WARNING, "on indication from {0}", src, rte);
logger.log(WARNING, MessageFormat.format("on indication from {0}", src), rte);
}
}
}
Expand Down

0 comments on commit 5aea35b

Please sign in to comment.