diff --git a/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/DebugTextOverlay.java b/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/DebugTextOverlay.java index cab90874168..a99373bb27d 100644 --- a/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/DebugTextOverlay.java +++ b/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/DebugTextOverlay.java @@ -221,8 +221,8 @@ protected void showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vect } catch (IOException ex) { - LOG.error("Couldn't get bounds for code {} at position ({},{})", code, - at.getTranslateX(), at.getTranslateY(), ex); + LOG.error(() -> "Couldn't get bounds for code " + code + " at position (" + + at.getTranslateX() + "," + at.getTranslateY() + ")", ex); } if (bbox == null) {