From: Doug MacEachern Date: Thu, 22 Nov 2001 01:40:26 +0000 (+0000) Subject: return from ssl_callback_LogTracingState if sc->nLogLevel < SSL_LOG_INFO X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b5976c06a825d56ea8e4c2c5778c25002a40ab0;p=thirdparty%2Fapache%2Fhttpd.git return from ssl_callback_LogTracingState if sc->nLogLevel < SSL_LOG_INFO else there are 5 (expensive!) calls made to ssl_var_lookup on every request for info that will never be logged PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@92119 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_kernel.c b/ssl_engine_kernel.c index 569e8c87843..0ac1225b3c7 100644 --- a/ssl_engine_kernel.c +++ b/ssl_engine_kernel.c @@ -1614,6 +1614,11 @@ void ssl_callback_LogTracingState(SSL *ssl, int where, int rc) if ((sc = mySrvConfig(s)) == NULL) return; + if (sc->nLogLevel < SSL_LOG_INFO) { + /* nothing todo here */ + return; + } + /* * create the various trace messages */