You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2020/06/08 14:51:32 UTC
svn commit: r1878613 -
/httpd/test/framework/trunk/c-modules/test_rwrite/mod_test_rwrite.c
Author: jorton
Date: Mon Jun 8 14:51:32 2020
New Revision: 1878613
URL: http://svn.apache.org/viewvc?rev=1878613&view=rev
Log:
* c-modules/test_rwrite/mod_test_rwrite.c: Use ap_log_rerror throughout.
Modified:
httpd/test/framework/trunk/c-modules/test_rwrite/mod_test_rwrite.c
Modified: httpd/test/framework/trunk/c-modules/test_rwrite/mod_test_rwrite.c
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/c-modules/test_rwrite/mod_test_rwrite.c?rev=1878613&r1=1878612&r2=1878613&view=diff
==============================================================================
--- httpd/test/framework/trunk/c-modules/test_rwrite/mod_test_rwrite.c (original)
+++ httpd/test/framework/trunk/c-modules/test_rwrite/mod_test_rwrite.c Mon Jun 8 14:51:32 2020
@@ -36,8 +36,9 @@ static int test_rwrite_handler(request_r
httpd_test_split_qs_numbers(r, &buff_size, &remaining, NULL);
- fprintf(stderr, "[mod_test_rwrite] going to echo %" APR_SIZE_T_FMT " bytes\n",
- remaining);
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
+ "[mod_test_rwrite] going to echo %" APR_SIZE_T_FMT " bytes",
+ remaining);
buff = malloc(buff_size);
memset(buff, 'a', buff_size);
@@ -48,14 +49,14 @@ static int test_rwrite_handler(request_r
long nrd = ap_rwrite(buff, len, r);
total += nrd;
- fprintf(stderr, "[mod_test_rwrite] wrote %ld of %d bytes\n",
- nrd, len);
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
+ "[mod_test_rwrite] wrote %ld of %d bytes", nrd, len);
}
-
- fprintf(stderr,
- "[mod_test_rwrite] done writing %" APR_SIZE_T_FMT
- " of %" APR_SIZE_T_FMT " bytes\n",
- total, remaining);
+
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
+ "[mod_test_rwrite] done writing %" APR_SIZE_T_FMT
+ " of %" APR_SIZE_T_FMT " bytes",
+ total, remaining);
free(buff);
return OK;