geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jawar...@apache.org
Subject svn commit: r661346 - /geronimo/server/trunk/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
Date Thu, 29 May 2008 15:09:14 GMT
Author: jawarner
Date: Thu May 29 08:09:13 2008
New Revision: 661346

URL: http://svn.apache.org/viewvc?rev=661346&view=rev
Log:
GERONIMO-4087: Improve usability of gshell commands deploy/* when failing to connect to server

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

Modified: geronimo/server/trunk/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java?rev=661346&r1=661345&r2=661346&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/factories/BaseDeploymentFactory.java
Thu May 29 08:09:13 2008
@@ -178,10 +178,14 @@
             }
             return manager;
         } catch (IOException e) {
-            log.error("caught ", e);
+        	if (log.isDebugEnabled()) {
+                log.debug("caught ", e);
+        	}
             DeploymentManagerCreationException deploymentManagerCreationException = 
                     (DeploymentManagerCreationException) new DeploymentManagerCreationException(e.getMessage()).initCause(e);
-            log.error("throwing ", deploymentManagerCreationException);
+            if (log.isDebugEnabled()) {
+                log.debug("throwing ", deploymentManagerCreationException);
+            }
             throw deploymentManagerCreationException;
         } catch (SecurityException e) {
             if (log.isDebugEnabled()) {



Mime
View raw message