catch ACE and resolve accordingly

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@718 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jesse McConnell 2009-08-13 19:50:19 +00:00
parent 5452e98384
commit e3a029fb3c
1 changed files with 12 additions and 2 deletions

View File

@ -13,6 +13,8 @@
package org.eclipse.jetty.util.log;
import java.security.AccessControlException;
import org.eclipse.jetty.util.DateCache;
/*-----------------------------------------------------------------------*/
@ -32,7 +34,7 @@ public class StdErrLog implements Logger
private final static boolean __debug = Boolean.parseBoolean(System.getProperty("org.eclipse.jetty.util.log.stderr.DEBUG","false"));
private boolean _debug = __debug;
private String _name;
private final String _name;
private boolean _hideStacks=false;
static
@ -56,7 +58,15 @@ public class StdErrLog implements Logger
public StdErrLog(String name)
{
this._name=name==null?"":name;
_debug=Boolean.parseBoolean(System.getProperty(name+".DEBUG",Boolean.toString(__debug)));
try
{
_debug = Boolean.parseBoolean(System.getProperty(name + ".DEBUG",Boolean.toString(__debug)));
}
catch (AccessControlException ace)
{
_debug = __debug;
}
}
public String getName()