IDEMPIERE-638 Check log level before calling logging method.

This commit is contained in:
Heng Sin Low 2013-02-18 12:08:05 +08:00
parent a04d56b8b8
commit 9865d517a9
1 changed files with 3 additions and 2 deletions

View File

@ -1327,8 +1327,9 @@ public class GridTable extends AbstractTableModel
*/
public boolean needSave(int newRow, boolean onlyRealChange)
{
log.fine("Row=" + newRow +
", Changed=" + m_rowChanged + "/" + m_changed); // m_rowChanged set in setValueAt
if (log.isLoggable(Level.FINE))
log.fine("Row=" + newRow +
", Changed=" + m_rowChanged + "/" + m_changed); // m_rowChanged set in setValueAt
// nothing done
if (!m_changed && m_rowChanged == -1)
return false;