axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r635568 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/LoggingControl.java
Date Mon, 10 Mar 2008 14:39:11 GMT
Author: dims
Date: Mon Mar 10 07:39:07 2008
New Revision: 635568

URL: http://svn.apache.org/viewvc?rev=635568&view=rev
Log:
Fix for AXIS2-3117 - SecurityException thrown in util.LoggingControl, when run from an applet

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/LoggingControl.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/LoggingControl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/LoggingControl.java?rev=635568&r1=635567&r2=635568&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/LoggingControl.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/LoggingControl.java
Mon Mar 10 07:39:07 2008
@@ -35,6 +35,15 @@
      * or
      * if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled())...
      */
-    public static final boolean debugLoggingAllowed =
-            (System.getProperty("Axis2.prohibitDebugLogging") == null);
+    public static final boolean debugLoggingAllowed;
+
+    static {
+        String prop = null;
+        try {
+            prop = System.getProperty("Axis2.prohibitDebugLogging");
+        } catch (SecurityException SE) {
+            //do nothing
+        }
+        debugLoggingAllowed = prop == null;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message