always pass full web service exception details to the log
authorjprocter <Jim Procter>
Mon, 17 May 2010 09:56:31 +0000 (09:56 +0000)
committerjprocter <Jim Procter>
Mon, 17 May 2010 09:56:31 +0000 (09:56 +0000)
src/jalview/ws/AWSThread.java

index 1de2c01..d49b245 100644 (file)
@@ -92,15 +92,12 @@ public abstract class AWSThread extends Thread
                     + jobs[j].isServerError() + ")");
           } catch (Exception ex)
           {
-            if (Cache.log.isDebugEnabled())
-            {
-              Cache.log.debug(ex);
-            }
             // Deal with Transaction exceptions
             wsInfo.appendProgressText(jobs[j].jobnum, "\n" + WebServiceName
                     + " Server exception!\n" + ex.getMessage());
+            // always output the exception's stack trace to the log
             Cache.log.warn(WebServiceName + " job(" + jobs[j].jobnum
-                    + ") Server exception: " + ex.getMessage());
+                    + ") Server exception.",ex);
 
             if (jobs[j].allowedServerExceptions > 0)
             {