From: Stefan Fritsch Date: Sat, 8 Dec 2012 22:06:49 +0000 (+0000) Subject: make ssl_io_data_dump respect per-conn loglevel X-Git-Tag: 2.5.0-alpha~6050 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b22033a290f2daa3fcc84c0d860560517702f0b;p=thirdparty%2Fapache%2Fhttpd.git make ssl_io_data_dump respect per-conn loglevel git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1418765 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index b8a0c05897d..16f56d3e384 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -1950,9 +1950,8 @@ void ssl_io_filter_register(apr_pool_t *p) #define DUMP_WIDTH 16 -static void ssl_io_data_dump(server_rec *s, - const char *b, - long len) +static void ssl_io_data_dump(conn_rec *c, server_rec *s, + const char *b, long len) { char buf[256]; char tmp[64]; @@ -1965,7 +1964,7 @@ static void ssl_io_data_dump(server_rec *s, rows = (len / DUMP_WIDTH); if ((rows * DUMP_WIDTH) < len) rows++; - ap_log_error(APLOG_MARK, APLOG_TRACE7, 0, s, + ap_log_cserror(APLOG_MARK, APLOG_TRACE7, 0, c, s, "+-------------------------------------------------------------------------+"); for(i = 0 ; i< rows; i++) { #if APR_CHARSET_EBCDIC @@ -2004,12 +2003,12 @@ static void ssl_io_data_dump(server_rec *s, } } apr_cpystrn(buf+strlen(buf), " |", sizeof(buf)-strlen(buf)); - ap_log_error(APLOG_MARK, APLOG_TRACE7, 0, s, "%s", buf); + ap_log_cserror(APLOG_MARK, APLOG_TRACE7, 0, c, s, "%s", buf); } if (trunc > 0) - ap_log_error(APLOG_MARK, APLOG_TRACE7, 0, s, + ap_log_cserror(APLOG_MARK, APLOG_TRACE7, 0, c, s, "| %04ld - ", len + trunc); - ap_log_error(APLOG_MARK, APLOG_TRACE7, 0, s, + ap_log_cserror(APLOG_MARK, APLOG_TRACE7, 0, c, s, "+-------------------------------------------------------------------------+"); return; } @@ -2045,7 +2044,7 @@ long ssl_io_data_cb(BIO *bio, int cmd, rc, argi, (cmd == (BIO_CB_WRITE|BIO_CB_RETURN) ? "to" : "from"), bio, argp, dump); if (*dump != '\0' && argp != NULL) - ssl_io_data_dump(s, argp, rc); + ssl_io_data_dump(c, s, argp, rc); } else { ap_log_cserror(APLOG_MARK, APLOG_TRACE4, 0, c, s,