tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1021961 - /openejb/branches/openejb-3.1.x/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceManager.java
Date Wed, 13 Oct 2010 00:30:49 GMT
Author: dblevins
Date: Wed Oct 13 00:30:48 2010
New Revision: 1021961

URL: http://svn.apache.org/viewvc?rev=1021961&view=rev
Log:
Additional debug logging

Modified:
    openejb/branches/openejb-3.1.x/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceManager.java

Modified: openejb/branches/openejb-3.1.x/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceManager.java
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceManager.java?rev=1021961&r1=1021960&r2=1021961&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceManager.java
(original)
+++ openejb/branches/openejb-3.1.x/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceManager.java
Wed Oct 13 00:30:48 2010
@@ -41,7 +41,7 @@ import org.apache.xbean.recipe.Option;
  */
 public abstract class ServiceManager {
 
-    static Logger logger = Logger.getInstance(LogCategory.OPENEJB_SERVER_REMOTE, "org.apache.openejb.server.util.resources");
+    static Logger logger = Logger.getInstance(LogCategory.OPENEJB_SERVER, "org.apache.openejb.server.util.resources");
 
     private static ServiceManager manager;
 
@@ -111,7 +111,14 @@ public abstract class ServiceManager {
 
             Class serviceClass = (Class) serviceProperties.get(ServerService.class);
 
-            logger.debug("Creating ServerService(id=" + serviceName + ")");
+            logger.info("Creating ServerService(id=" + serviceName + ")");
+
+            // log all properties on debug
+            if (logger.isDebugEnabled()){
+                for (Map.Entry<Object, Object> entry : serviceProperties.entrySet())
{
+                    logger.debug(entry.getKey() +" = "+ entry.getValue());
+                }
+            }
 
             try {
                 // Create Service



Mime
View raw message