You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by to...@apache.org on 2006/03/03 12:44:24 UTC
svn commit: r382769 -
/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java
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