IDEMPIERE-638 Check log level before calling logging method / log.finer. Fix missing parenthesis.

This commit is contained in:
Heng Sin Low 2013-02-26 11:16:55 +08:00
parent 175a592c78
commit 8351ee7bd1
1 changed files with 4 additions and 2 deletions

View File

@ -1258,12 +1258,14 @@ public class GridField
m_parentValue = Boolean.FALSE; // teo_sarca, [ 1673886 ]
else
m_parentValue = Boolean.valueOf(m_vo.ColumnName.equals(LinkColumnName));
if (m_parentValue)
if (m_parentValue) {
if (log.isLoggable(Level.CONFIG)) log.config(m_parentValue
+ " - Link(" + LinkColumnName + ", W=" + m_vo.WindowNo + ",T=" + m_vo.TabNo
+ ") = " + m_vo.ColumnName);
else
}
else {
m_parentValue = Boolean.valueOf(isIndirectParentValue());
}
}
return m_parentValue.booleanValue();
} // isParentValue