svn commit: r453163 - in /incubator/ofbiz/trunk/framework: common/servicedef/services.xml common/src/org/ofbiz/common/CommonServices.java webtools/webapp/webtools/WEB-INF/controller.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r453163 - in /incubator/ofbiz/trunk/framework: common/servicedef/services.xml common/src/org/ofbiz/common/CommonServices.java webtools/webapp/webtools/WEB-INF/controller.xml

jleroux@apache.org
Author: jleroux
Date: Thu Oct  5 02:35:07 2006
New Revision: 453163

URL: http://svn.apache.org/viewvc?view=rev&rev=453163
Log:
Changed service name adjustDebugingLevels to adjustDebugLevels.

Modified:
    incubator/ofbiz/trunk/framework/common/servicedef/services.xml
    incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonServices.java
    incubator/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml

Modified: incubator/ofbiz/trunk/framework/common/servicedef/services.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/common/servicedef/services.xml?view=diff&rev=453163&r1=453162&r2=453163
==============================================================================
--- incubator/ofbiz/trunk/framework/common/servicedef/services.xml (original)
+++ incubator/ofbiz/trunk/framework/common/servicedef/services.xml Thu Oct  5 02:35:07 2006
@@ -48,8 +48,8 @@
         <attribute name="noteId" type="String" mode="OUT"/>
     </service>
 
-    <service name="adjustDebugingLevels" engine="java"
-             location="org.ofbiz.common.CommonServices" invoke="adjustDebugingLevels" auth="true">
+    <service name="adjustDebugLevels" engine="java"
+             location="org.ofbiz.common.CommonServices" invoke="adjustDebugLevels" auth="true">
         <description>Sets/Updates cached debugging levels</description>
         <attribute name="fatal" type="String" mode="IN" optional="true"/>
         <attribute name="error" type="String" mode="IN" optional="true"/>

Modified: incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonServices.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonServices.java?view=diff&rev=453163&r1=453162&r2=453163
==============================================================================
--- incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonServices.java (original)
+++ incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonServices.java Thu Oct  5 02:35:07 2006
@@ -174,33 +174,33 @@
      *@param context Map containing the input parameters
      *@return Map with the result of the service, the output parameters
      */
-    public static Map adjustDebugingLevels(DispatchContext dctc, Map context) {
- Debug.set(Debug.FATAL, "Y".equalsIgnoreCase((String) context.get("fatal")));
- Debug.set(Debug.ERROR, "Y".equalsIgnoreCase((String) context.get("error")));
- Debug.set(Debug.WARNING, "Y".equalsIgnoreCase((String) context.get("warning")));
- Debug.set(Debug.IMPORTANT, "Y".equalsIgnoreCase((String) context.get("important")));
- Debug.set(Debug.INFO, "Y".equalsIgnoreCase((String) context.get("info")));
- Debug.set(Debug.TIMING, "Y".equalsIgnoreCase((String) context.get("timing")));
- Debug.set(Debug.VERBOSE, "Y".equalsIgnoreCase((String) context.get("verbose")));
-
- return ServiceUtil.returnSuccess();
+    public static Map adjustDebugLevels(DispatchContext dctc, Map context) {
+        Debug.set(Debug.FATAL, "Y".equalsIgnoreCase((String) context.get("fatal")));
+        Debug.set(Debug.ERROR, "Y".equalsIgnoreCase((String) context.get("error")));
+        Debug.set(Debug.WARNING, "Y".equalsIgnoreCase((String) context.get("warning")));
+        Debug.set(Debug.IMPORTANT, "Y".equalsIgnoreCase((String) context.get("important")));
+        Debug.set(Debug.INFO, "Y".equalsIgnoreCase((String) context.get("info")));
+        Debug.set(Debug.TIMING, "Y".equalsIgnoreCase((String) context.get("timing")));
+        Debug.set(Debug.VERBOSE, "Y".equalsIgnoreCase((String) context.get("verbose")));
+    
+        return ServiceUtil.returnSuccess();
     }
 
     public static Map addOrUpdateLogger(DispatchContext dctc, Map context) {
- String name = (String) context.get("name");
- String level = (String) context.get("level");
- boolean additivity = "Y".equalsIgnoreCase((String) context.get("additivity"));
-
- Logger logger = null;
- if ("root".equals(name)) {
-    logger = Logger.getRootLogger();
- } else {
-    logger = Logger.getLogger(name);
- }
- logger.setLevel(Level.toLevel(level));
- logger.setAdditivity(additivity);
-
- return ServiceUtil.returnSuccess();
+        String name = (String) context.get("name");
+        String level = (String) context.get("level");
+        boolean additivity = "Y".equalsIgnoreCase((String) context.get("additivity"));
+    
+        Logger logger = null;
+        if ("root".equals(name)) {
+            logger = Logger.getRootLogger();
+        } else {
+            logger = Logger.getLogger(name);
+        }
+        logger.setLevel(Level.toLevel(level));
+        logger.setAdditivity(additivity);
+    
+        return ServiceUtil.returnSuccess();
     }
 
     public static Map forceGc(DispatchContext dctx, Map context) {

Modified: incubator/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml?view=diff&rev=453163&r1=453162&r2=453163
==============================================================================
--- incubator/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml (original)
+++ incubator/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml Thu Oct  5 02:35:07 2006
@@ -305,9 +305,9 @@
         <event type="service-multi" invoke="addOrUpdateLogger"/>
         <response name="success" type="view" value="LogConfiguration"/>
     </request-map>
-    <request-map uri="AdjustDebugingLevels">
+    <request-map uri="AdjustDebugLevels">
         <security https="true" auth="true"/>
-        <event type="service" invoke="adjustDebugingLevels"/>
+        <event type="service" invoke="adjustDebugLevels"/>
         <response name="success" type="view" value="LogConfiguration"/>
     </request-map>