From d80b91583628d40b741af9c2e57d498e4c4ee236 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 28 Apr 2021 11:05:09 +0200 Subject: [PATCH] IDEMPIERE-4372 Performance: only add log record and sql statement to context if trace/debug level <= debug/info (#665) Revert change to assign the variable _TabInfo_SQL just on some log level --- org.adempiere.base/src/org/compiere/model/GridTable.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridTable.java b/org.adempiere.base/src/org/compiere/model/GridTable.java index be58584c06..2df74fbf3a 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTable.java +++ b/org.adempiere.base/src/org/compiere/model/GridTable.java @@ -432,8 +432,7 @@ public class GridTable extends AbstractTableModel // if (log.isLoggable(Level.FINE)) log.fine(m_SQL_Count); - if (log.isLoggable(Level.INFO)) - Env.setContext(m_ctx, m_WindowNo, m_TabNo, GridTab.CTX_SQL, m_SQL); + Env.setContext(m_ctx, m_WindowNo, m_TabNo, GridTab.CTX_SQL, m_SQL); return m_SQL; } // createSelectSql