commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r280766 - /jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/GenericTypeValidator.java
Date Wed, 14 Sep 2005 04:56:21 GMT
Author: niallp
Date: Tue Sep 13 21:56:10 2005
New Revision: 280766

URL: http://svn.apache.org/viewcvs?rev=280766&view=rev
Log:
correct logging to use isDebugEnabled()

Modified:
    jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/GenericTypeValidator.java

Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/GenericTypeValidator.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/GenericTypeValidator.java?rev=280766&r1=280765&r2=280766&view=diff
==============================================================================
--- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/GenericTypeValidator.java
(original)
+++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/GenericTypeValidator.java
Tue Sep 13 21:56:10 2005
@@ -387,7 +387,10 @@
             date = formatter.parse(value);
         } catch (ParseException e) {
             // Bad date so return null
-            log.debug("formatDate('" + value + "', '" + locale + "') " + e);
+            if (log.isDebugEnabled()) {
+                log.debug("Date parse failed value=[" + value  + "], " +
+                                           "locale=[" + locale + "] "  + e);
+            }
         }
 
         return date;
@@ -429,8 +432,11 @@
             }
         } catch (ParseException e) {
             // Bad date so return null
-            log.debug("formatDate('" + value + "', '" + datePattern 
-                                + "', '" + strict+ "') " + e);
+            if (log.isDebugEnabled()) {
+                log.debug("Date parse failed value=[" + value       + "], " +
+                                          "pattern=[" + datePattern + "], " +
+                                           "strict=[" + strict      + "] "  + e);
+            }
         }
 
         return date;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message