diff options
author | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-05-16 07:17:11 +0200 |
---|---|---|
committer | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-05-16 07:17:11 +0200 |
commit | d0214d5ae72704327942d7e8a615ce38410fd159 (patch) | |
tree | 0cd68d23a0b47ed027fa69d30da7601f071652e2 /modules/ssl/ssl_scache.c | |
parent | Feeling more confident in the worker MPM now, so I'm with Brian on (diff) | |
download | apache2-d0214d5ae72704327942d7e8a615ce38410fd159.tar.xz apache2-d0214d5ae72704327942d7e8a615ce38410fd159.zip |
Change mod_ssl from using ssl_log() to ap_log_error().
The issue is that ssl_log doesn't handle apr_status_t result codes. This
leads to a number of places (esp. with mutexes) where the error codes get
lost. Rather than extending ssl_log further, since mod_ssl is part of
our core, migrate to ap_log_error. This means that mod_ssl no longer
does its own logging.
Most uses of SSL_ADD_ERRNO are now mapped correctly to apr_status_t values
(mainly because the APIs that used to return errnos are now APRized and
have apr_status_t codes available).
SSL_LOG_TRACE and SSL_LOG_DEBUG were mapped to the APLOG_DEBUG values.
mod_ssl prints out a LOT of debugging information, so mod_ssl with LogLevel
Debug may not be a good idea - perhaps mod_ssl should be less chatty.
Numerous printf type collisions were also resolved.
(The ssl logging code itself will be removed in a subsequent commit.)
This has been discussed on dev@httpd, but the fact that there isn't
much to review besides the mindless changes, I'm going to commit now
and rely on CTR if I screwed up anything on the translation.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95127 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ssl/ssl_scache.c')
-rw-r--r-- | modules/ssl/ssl_scache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ssl/ssl_scache.c b/modules/ssl/ssl_scache.c index df7567df78..5f7d2841a4 100644 --- a/modules/ssl/ssl_scache.c +++ b/modules/ssl/ssl_scache.c @@ -78,9 +78,9 @@ void ssl_scache_init(server_rec *s, apr_pool_t *p) * But we can operate without it, of course. */ if (mc->nSessionCacheMode == SSL_SCMODE_UNSET) { - ssl_log(s, SSL_LOG_WARN, - "Init: Session Cache is not configured " - "[hint: SSLSessionCache]"); + ap_log_error(APLOG_MARK, APLOG_WARNING|APLOG_NOERRNO, 0, s, + "Init: Session Cache is not configured " + "[hint: SSLSessionCache]"); mc->nSessionCacheMode = SSL_SCMODE_NONE; return; } |