Added diagnostic logging for security exceptions.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@377202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -846,7 +846,8 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
try {
|
try {
|
||||||
specifiedClass = System.getProperty(LOG_PROPERTY);
|
specifiedClass = System.getProperty(LOG_PROPERTY);
|
||||||
} catch (SecurityException e) {
|
} catch (SecurityException e) {
|
||||||
;
|
logDiagnostic("No access allowed to system property '" +
|
||||||
|
LOG_PROPERTY + "' - " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -856,7 +857,8 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
try {
|
try {
|
||||||
specifiedClass = System.getProperty(LOG_PROPERTY_OLD);
|
specifiedClass = System.getProperty(LOG_PROPERTY_OLD);
|
||||||
} catch (SecurityException e) {
|
} catch (SecurityException e) {
|
||||||
;
|
logDiagnostic("No access allowed to system property '" +
|
||||||
|
LOG_PROPERTY_OLD + "' - " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user