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)
|
public boolean needSave(int newRow, boolean onlyRealChange)
|
||||||
{
|
{
|
||||||
log.fine("Row=" + newRow +
|
if (log.isLoggable(Level.FINE))
|
||||||
", Changed=" + m_rowChanged + "/" + m_changed); // m_rowChanged set in setValueAt
|
log.fine("Row=" + newRow +
|
||||||
|
", Changed=" + m_rowChanged + "/" + m_changed); // m_rowChanged set in setValueAt
|
||||||
// nothing done
|
// nothing done
|
||||||
if (!m_changed && m_rowChanged == -1)
|
if (!m_changed && m_rowChanged == -1)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue