db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r382769 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java
Date Fri, 03 Mar 2006 11:44:24 GMT
Author: tomdz
Date: Fri Mar  3 03:44:22 2006
New Revision: 382769

URL: http://svn.apache.org/viewcvs?rev=382769&view=rev
Log:
Enhanced logging of sql errors when failonerror is set to false for a task

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java?rev=382769&r1=382768&r2=382769&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java Fri Mar
 3 03:44:22 2006
@@ -210,7 +210,13 @@
                 {
                     if (continueOnError)
                     {
-                        _log.warn("SQL Command " + command + " failed with ", ex);
+                        // Since the user deciced to ignore this error, we log the error
+                        // on level warn, and the exception itself on level debug
+                        _log.warn("SQL Command " + command + " failed with: " + ex.getMessage());
+                        if (_log.isDebugEnabled())
+                        {
+                            _log.debug(ex);
+                        }
                         errors++;
                     }
                     else



Mime
View raw message