IDEMPIERE-638 Check log level before calling logging method.
This commit is contained in:
parent
a04d56b8b8
commit
9865d517a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue