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-Tag: 2.0.29~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=931bf95383115166353b92dc184626aa587a47e5;p=apache 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@92119 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index 569e8c8784..0ac1225b3c 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/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 */