geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r565606 - /geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
Date Tue, 14 Aug 2007 01:42:46 GMT
Author: dwoods
Date: Mon Aug 13 18:42:45 2007
New Revision: 565606

URL: http://svn.apache.org/viewvc?view=rev&rev=565606
Log:
GERONIMO-3378 - Enhance debugability of Deployer by logging errors and more data on debug

Modified:
    geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java

Modified: geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java?view=diff&rev=565606&r1=565605&r2=565606
==============================================================================
--- geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
(original)
+++ geronimo/server/trunk/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
Mon Aug 13 18:42:45 2007
@@ -176,13 +176,17 @@
             log.fatal("caught ", e);
             DeploymentManagerCreationException deploymentManagerCreationException = 
                     (DeploymentManagerCreationException) new DeploymentManagerCreationException(e.getMessage()).initCause(e);
-            log.fatal("throwing " + deploymentManagerCreationException.getMessage(), deploymentManagerCreationException);
+            log.fatal("throwing ", deploymentManagerCreationException);
             throw deploymentManagerCreationException;
         } catch (SecurityException e) {
-            log.fatal("caught ", e);
+            if (log.isDebugEnabled()) {
+                log.debug("caught ", e);
+            }
             AuthenticationFailedException authenticationFailedException = 
                     (AuthenticationFailedException) new AuthenticationFailedException("Invalid
login.").initCause(e);
-            log.fatal("throwing ", authenticationFailedException);
+            if (log.isDebugEnabled()) {
+                log.debug("throwing ", authenticationFailedException);
+            }
             throw authenticationFailedException;
         }
     }



Mime
View raw message