From dc025d93657ff09ad8e74231806ece8ce3c82ae4 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 16 Feb 2024 15:12:54 +0000 Subject: [PATCH] [github-590] simplify some logging. This closes #590 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915818 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/hssf/model/InternalSheet.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java b/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java index 4bba3cea61..723025969f 100644 --- a/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java +++ b/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java @@ -23,7 +23,6 @@ import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.apache.logging.log4j.message.SimpleMessage; import org.apache.poi.hssf.record.*; import org.apache.poi.hssf.record.Record; import org.apache.poi.hssf.record.aggregates.ChartSubstreamRecordAggregate; @@ -541,12 +540,8 @@ public final class InternalSheet { public void setDimensions(int firstrow, short firstcol, int lastrow, short lastcol) { LOGGER.atDebug().log("Sheet.setDimensions"); - LOGGER.atDebug().log(() -> new SimpleMessage( - "firstrow" + firstrow + - "firstcol" + firstcol + - "lastrow" + lastrow + - "lastcol" + lastcol - )); + LOGGER.atDebug().log("firstrow: {} firstcol: {} lastrow: {} lastcol: {}", + firstrow, firstcol, lastrow, lastcol); _dimensions.setFirstCol(firstcol); _dimensions.setFirstRow(firstrow); _dimensions.setLastCol(lastcol); -- 2.39.5