From 5c7a66e73a84ca80d31da5cdea4be73ecc4c6120 Mon Sep 17 00:00:00 2001 From: Tiago Salvado Date: Tue, 6 Feb 2024 16:07:55 +0000 Subject: [PATCH] [MNT-23960] Changed log statements print format --- .../misc/transformers/TextToPdfContentTransformer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java b/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java index ae7852535..c8643d0dc 100644 --- a/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java +++ b/engines/misc/src/main/java/org/alfresco/transform/misc/transformers/TextToPdfContentTransformer.java @@ -174,7 +174,7 @@ public void transform(final String sourceMimetype, final String targetMimetype, catch (Exception e) { fontSize = DEFAULT_FONT_SIZE; - logger.error("Error parsing font size {}, going to set it as {} : {}", pdfFontSize, fontSize, e); + logger.error("Error parsing font size {}, going to set it as {}", pdfFontSize, fontSize, e); } } @@ -509,7 +509,7 @@ private PDFont getFromFontMapper(String fontName, PDDocument doc) } catch (Exception e) { - logger.error("Error loading font mapping {} : {}", fontName, e); + logger.error("Error loading font mapping {}", fontName, e); } } @@ -548,7 +548,7 @@ private PDFont getFromFileSystem(String fontName) } catch (IOException ioe) { - logger.error("Error loading font {} from filesystem: {}", fontName, ioe); + logger.error("Error loading font {} from filesystem", fontName, ioe); } finally { @@ -560,7 +560,7 @@ private PDFont getFromFileSystem(String fontName) } catch (Exception e) { - logger.error("Error closing font inputstream: " + e.getMessage()); + logger.error("Error closing font inputstream", e); } } }