cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: rev 56896 - cocoon/whiteboard/kernel/sources/extensions/logging/src/org/apache/cocoon/kernel/plugins
Date Mon, 08 Nov 2004 03:24:15 GMT
Author: pier
Date: Sun Nov  7 19:24:15 2004
New Revision: 56896

Modified:
   cocoon/whiteboard/kernel/sources/extensions/logging/src/org/apache/cocoon/kernel/plugins/LoggingPlugin.java
Log:
Small changes for logging

Modified: cocoon/whiteboard/kernel/sources/extensions/logging/src/org/apache/cocoon/kernel/plugins/LoggingPlugin.java
==============================================================================
--- cocoon/whiteboard/kernel/sources/extensions/logging/src/org/apache/cocoon/kernel/plugins/LoggingPlugin.java
(original)
+++ cocoon/whiteboard/kernel/sources/extensions/logging/src/org/apache/cocoon/kernel/plugins/LoggingPlugin.java
Sun Nov  7 19:24:15 2004
@@ -137,15 +137,10 @@
      */
     public String getLoggerName(String arg0) {
         String name = Utilities.getCallerName();
-        if (name == null) {
-            if (arg0 == null) return "unknown";
-            if (arg0.length() == 0) return "unknown";
-            return arg0;
-        } else {
-            if (arg0 == null) return name;
-            if (arg0.length() == 0) return name;
-            return (name + "." + arg0);
-        }
+        if (name != null) return name;
+        if (arg0 == null) return "unknown";
+        if (arg0.length() == 0) return "unknown";
+        return "unknown." + arg0;
     }
 
     /**

Mime
View raw message