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:
Carlos Ruiz 2021-04-28 11:05:09 +02:00 committed by GitHub
parent 86fcec3c2f
commit d80b915836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -432,8 +432,7 @@ public class GridTable extends AbstractTableModel
// //
if (log.isLoggable(Level.FINE)) if (log.isLoggable(Level.FINE))
log.fine(m_SQL_Count); 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; return m_SQL;
} // createSelectSql } // createSelectSql