Removed some trivial padding for info messages at startup that required the usage of an external (freemarker) util class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621820 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -24,7 +24,6 @@ import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import freemarker.template.utility.StringUtil;
|
||||
import javolution.util.FastList;
|
||||
import javolution.util.FastMap;
|
||||
|
||||
@@ -135,7 +134,7 @@ public class EntityEcaUtil {
|
||||
rules.add(new EntityEcaRule(e));
|
||||
}
|
||||
try {
|
||||
Debug.logInfo("Loaded [" + StringUtil.leftPad(Integer.toString(rules.size()), 3) + "] Entity ECA definitions from " + handler.getFullLocation() + " in loader " + handler.getLoaderName(), module);
|
||||
Debug.logInfo("Loaded [" + rules.size() + "] Entity ECA definitions from " + handler.getFullLocation() + " in loader " + handler.getLoaderName(), module);
|
||||
} catch (GenericConfigException e) {
|
||||
Debug.logError(e, module);
|
||||
}
|
||||
|
||||
@@ -51,8 +51,6 @@ import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
import freemarker.template.utility.StringUtil;
|
||||
|
||||
/**
|
||||
* Generic Service - Service Definition Reader
|
||||
*/
|
||||
@@ -182,11 +180,11 @@ public class ModelServiceReader implements Serializable {
|
||||
}
|
||||
if (this.isFromURL) {
|
||||
utilTimer.timerString("Finished file " + readerURL + " - Total Services: " + i + " FINISHED");
|
||||
Debug.logInfo("Loaded [" + StringUtil.leftPad(Integer.toString(i), 3) + "] Services from " + readerURL, module);
|
||||
Debug.logInfo("Loaded [" + i + "] Services from " + readerURL, module);
|
||||
} else {
|
||||
utilTimer.timerString("Finished document in " + handler + " - Total Services: " + i + " FINISHED");
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("Loaded [" + StringUtil.leftPad(Integer.toString(i), 3) + "] Services from " + resourceLocation, module);
|
||||
Debug.logInfo("Loaded [" + i + "] Services from " + resourceLocation, module);
|
||||
}
|
||||
}
|
||||
return modelServices;
|
||||
|
||||
@@ -43,8 +43,6 @@ import org.ofbiz.service.config.ServiceConfigUtil;
|
||||
import org.ofbiz.service.config.model.ServiceEcas;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import freemarker.template.utility.StringUtil;
|
||||
|
||||
/**
|
||||
* ServiceEcaUtil
|
||||
*/
|
||||
@@ -123,7 +121,7 @@ public class ServiceEcaUtil {
|
||||
handlerRules.add(new ServiceEcaRule(e, resourceLocation));
|
||||
}
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("Loaded [" + StringUtil.leftPad(Integer.toString(handlerRules.size()), 3) + "] Service ECA Rules from " + resourceLocation, module);
|
||||
Debug.logInfo("Loaded [" + handlerRules.size() + "] Service ECA Rules from " + resourceLocation, module);
|
||||
}
|
||||
return handlerRules;
|
||||
}
|
||||
|
||||
@@ -33,8 +33,6 @@ import org.ofbiz.service.config.ServiceConfigUtil;
|
||||
import org.ofbiz.service.config.model.ServiceGroups;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import freemarker.template.utility.StringUtil;
|
||||
|
||||
/**
|
||||
* ServiceGroupReader.java
|
||||
*/
|
||||
@@ -88,7 +86,7 @@ public class ServiceGroupReader {
|
||||
} catch (GenericConfigException e) {
|
||||
Debug.logError(e, "Could not get resource URL", module);
|
||||
}
|
||||
Debug.logInfo("Loaded [" + StringUtil.leftPad(Integer.toString(numDefs), 3) + "] Group definitions from " + resourceLocation, module);
|
||||
Debug.logInfo("Loaded [" + numDefs + "] Group definitions from " + resourceLocation, module);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user