IDEMPIERE-743 GridField.GetDefault shouldn't log no result SQL default as warning.

This commit is contained in:
Heng Sin Low 2013-03-15 00:28:12 +08:00
parent 4249922521
commit 8c84198efc
1 changed files with 4 additions and 1 deletions

View File

@ -590,7 +590,10 @@ public class GridField
if (rs.next()) if (rs.next())
defStr = rs.getString(1); defStr = rs.getString(1);
else else
log.log(Level.WARNING, "(" + m_vo.ColumnName + ") - no Result: " + sql); {
if (log.isLoggable(Level.INFO))
log.log(Level.INFO, "(" + m_vo.ColumnName + ") - no Result: " + sql);
}
} }
catch (SQLException e) catch (SQLException e)
{ {