Author: erwan
Date: Sat May 12 07:39:56 2012 New Revision: 1337462 URL: http://svn.apache.org/viewvc?rev=1337462&view=rev Log: Adding consistency in log messages, 3 chars between square brackets Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaUtil.java ofbiz/trunk/framework/service/src/org/ofbiz/service/eca/ServiceEcaUtil.java ofbiz/trunk/framework/service/src/org/ofbiz/service/group/ServiceGroupReader.java Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaUtil.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaUtil.java?rev=1337462&r1=1337461&r2=1337462&view=diff ============================================================================== --- ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaUtil.java (original) +++ ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaUtil.java Sat May 12 07:39:56 2012 @@ -24,6 +24,7 @@ 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; @@ -130,7 +131,7 @@ public class EntityEcaUtil { rules.add(new EntityEcaRule(e)); } try { - Debug.logImportant("Loaded [" + rules.size() + "] Entity ECA definitions from " + handler.getFullLocation() + " in loader " + handler.getLoaderName(), module); + Debug.logImportant("Loaded [" + StringUtil.leftPad(Integer.toString(rules.size()), 3) + "] Entity ECA definitions from " + handler.getFullLocation() + " in loader " + handler.getLoaderName(), module); } catch (GenericConfigException e) { Debug.logError(e, module); } Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/eca/ServiceEcaUtil.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/eca/ServiceEcaUtil.java?rev=1337462&r1=1337461&r2=1337462&view=diff ============================================================================== --- ofbiz/trunk/framework/service/src/org/ofbiz/service/eca/ServiceEcaUtil.java (original) +++ ofbiz/trunk/framework/service/src/org/ofbiz/service/eca/ServiceEcaUtil.java Sat May 12 07:39:56 2012 @@ -121,7 +121,7 @@ public class ServiceEcaUtil { handlerRules.add(new ServiceEcaRule(e, resourceLocation)); } if (Debug.importantOn()) { - Debug.logImportant("Loaded [" + StringUtil.leftPad(Integer.toString(handlerRules.size()), 2) + "] Service ECA Rules from " + resourceLocation, module); + Debug.logImportant("Loaded [" + StringUtil.leftPad(Integer.toString(handlerRules.size()), 3) + "] Service ECA Rules from " + resourceLocation, module); } return handlerRules; } Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/group/ServiceGroupReader.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/group/ServiceGroupReader.java?rev=1337462&r1=1337461&r2=1337462&view=diff ============================================================================== --- ofbiz/trunk/framework/service/src/org/ofbiz/service/group/ServiceGroupReader.java (original) +++ ofbiz/trunk/framework/service/src/org/ofbiz/service/group/ServiceGroupReader.java Sat May 12 07:39:56 2012 @@ -20,6 +20,7 @@ package org.ofbiz.service.group; import java.util.Map; +import freemarker.template.utility.StringUtil; import javolution.util.FastMap; import org.ofbiz.base.component.ComponentConfig; @@ -85,7 +86,7 @@ public class ServiceGroupReader { } catch (GenericConfigException e) { Debug.logError(e, "Could not get resource URL", module); } - Debug.logImportant("Loaded [" + numDefs + "] Group definitions from " + resourceLocation, module); + Debug.logImportant("Loaded [" + StringUtil.leftPad(Integer.toString(numDefs), 3) + "] Group definitions from " + resourceLocation, module); } } |
Free forum by Nabble | Edit this page |