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
This commit is contained in:
parent
86fcec3c2f
commit
d80b915836
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue