Remove unnecessary logging of missing #date in context when running at server.

This commit is contained in:
Heng Sin Low 2011-02-11 10:41:51 +08:00
parent 0fba78288e
commit 765ba3d6d7
1 changed files with 4 additions and 1 deletions

View File

@ -808,7 +808,10 @@ public final class Env
// JDBC Format YYYY-MM-DD example 2000-09-11 00:00:00.0
if (s == null || s.equals(""))
{
getLogger().log(Level.SEVERE, "No value for: " + context);
if (!"#date".equalsIgnoreCase(context))
{
getLogger().log(Level.WARNING, "No value for: " + context);
}
return new Timestamp(System.currentTimeMillis());
}