You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2006/12/14 10:56:05 UTC
svn commit: r487152 - in /tomcat/tc6.0.x/trunk/java/org/apache/catalina/core:
AprLifecycleListener.java LocalStrings.properties
Author: mturk
Date: Thu Dec 14 01:56:05 2006
New Revision: 487152
URL: http://svn.apache.org/viewvc?view=rev&rev=487152
Log:
Log the loaded tomcat native version on startup.
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java?view=diff&rev=487152&r1=487151&r2=487152
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java Thu Dec 14 01:56:05 2006
@@ -75,13 +75,16 @@
public void lifecycleEvent(LifecycleEvent event) {
if (Lifecycle.INIT_EVENT.equals(event.getType())) {
- aprInitialized = initializeAPR();
+ aprInitialized = init();
if (aprInitialized) {
try {
initializeSSL();
} catch (Throwable t) {
- log.error(sm.getString("aprListener.sslInit",
- t.getMessage()), t);
+ if (!log.isDebugEnabled()) {
+ log.info(sm.getString("aprListener.sslInit"));
+ } else {
+ log.debug(sm.getString("aprListener.sslInit"));
+ }
}
}
} else if (Lifecycle.AFTER_STOP_EVENT.equals(event.getType())) {
@@ -111,7 +114,7 @@
method.invoke(null, (Object []) null);
}
- private boolean initializeAPR()
+ private boolean init()
{
int major = 0;
int minor = 0;
@@ -172,6 +175,14 @@
TCN_REQUIRED_MINOR + "." +
TCN_RECOMMENDED_PV));
}
+ }
+ if (!log.isDebugEnabled()) {
+ log.info(sm.getString("aprListener.tcnValid", major + "."
+ + minor + "." + patch));
+ }
+ else {
+ log.debug(sm.getString("aprListener.tcnValid", major + "."
+ + minor + "." + patch));
}
return true;
}
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties?view=diff&rev=487152&r1=487151&r2=487152
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties Thu Dec 14 01:56:05 2006
@@ -20,7 +20,8 @@
aprListener.tcnInvalid=An incompatible version {0} of the Apache Tomcat Native library is installed, while Tomcat requires version {1}
aprListener.tcnVersion=An older version {0} of the Apache Tomcat Native library is installed, while Tomcat recommends version greater then {1}
aprListener.aprDestroy=Failed shutdown of Apache Portable Runtime
-aprListener.sslInit=Unable to initialize the SSLEngine, failed with message: {0}
+aprListener.sslInit=Failed to initialize the SSLEngine.
+aprListener.tcnValid=Apache Tomcat Native library {0} loaded.
containerBase.addDefaultMapper=Exception configuring default mapper of class {0}
containerBase.alreadyStarted=Container {0} has already been started
containerBase.notConfigured=No basic Valve has been configured
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org