Author: kkolinko
Date: Thu Feb 12 23:05:38 2015
New Revision: 1659428
URL: http://svn.apache.org/r1659428
Log:
Further fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=57021
Log debug and error messages immediately and add stacktraces to them.
Modified:
tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
Modified: tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java?rev=1659428&r1=1659427&r2=1659428&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java Thu
Feb 12 23:05:38 2015
@@ -202,19 +202,18 @@ public class AprLifecycleListener
} catch (LibraryNotFoundError lnfe) {
// Library not on path
if (log.isDebugEnabled()) {
-
initInfoLogMessages.add(sm.getString("aprListener.aprInitDebug",
+ log.debug(sm.getString("aprListener.aprInitDebug",
lnfe.getLibraryNames(),
System.getProperty("java.library.path"),
- lnfe.getMessage()));
- } else {
- initInfoLogMessages.add(sm.getString("aprListener.aprInit",
- System.getProperty("java.library.path")));
+ lnfe.getMessage()), lnfe);
}
+ initInfoLogMessages.add(sm.getString("aprListener.aprInit",
+ System.getProperty("java.library.path")));
return;
} catch (Throwable t) {
// Library present but failed to load
t = ExceptionUtils.unwrapInvocationTargetException(t);
ExceptionUtils.handleThrowable(t);
- initInfoLogMessages.add(sm.getString("aprListener.aprInitError",
t.getMessage()));
+ log.warn(sm.getString("aprListener.aprInitError", t.getMessage()),
t);
return;
}
if (apver < rqver) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]