You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/03/10 15:39:11 UTC
svn commit: r635568 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/LoggingControl.java
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