gregames 2003/01/14 07:02:00
Modified: specweb99/specweb99-2.0 mod_specweb99.c
Log:
capture the return value from apr_file_write_full to the post log so it will
be
logged on a failure.
Reported by: Jason LaVoie <[EMAIL PROTECTED]>
Revision Changes Path
1.17 +4 -3 httpd-test/specweb99/specweb99-2.0/mod_specweb99.c
Index: mod_specweb99.c
===================================================================
RCS file: /home/cvs/httpd-test/specweb99/specweb99-2.0/mod_specweb99.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mod_specweb99.c 31 Oct 2002 19:39:04 -0000 1.16
+++ mod_specweb99.c 14 Jan 2003 15:02:00 -0000 1.17
@@ -765,8 +765,9 @@
line = apr_psprintf(r->pool, "%10d\n", 0);
- if (apr_file_write_full(f, line, strlen(line), NULL) != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
+ rv = apr_file_write_full(f, line, strlen(line), NULL);
+ if (rv != APR_SUCCESS) {
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
"Could not write to post.log '%s'", _my->log_path);
returnHTMLPageWithMessage(r,
"Error: could not write to post.log.");