Author: jaz
Date: Mon May 14 11:14:29 2007
New Revision: 537929
URL:
http://svn.apache.org/viewvc?view=rev&rev=537929Log:
changed thread dump to only display during debugging (verboseOn())
Modified:
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerLoader.java
Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerLoader.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerLoader.java?view=diff&rev=537929&r1=537928&r2=537929==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerLoader.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerLoader.java Mon May 14 11:14:29 2007
@@ -93,7 +93,9 @@
*/
public void unload() throws StartupException {
Debug.logInfo("Shutting down containers", module);
- printThreadDump();
+ if (Debug.verboseOn())
+ printThreadDump();
+
// shutting down in reverse order
for (int i = loadedContainers.size(); i > 0; i--) {
Container container = (Container) loadedContainers.get(i-1);
@@ -128,7 +130,7 @@
}
}
}
- Debug.logInfo(writer.toString(), module);
+ Debug.log(writer.toString(), module);
}
private Container loadContainer(ContainerConfig.Container containerCfg, String[] args) throws StartupException {