You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2003/09/21 23:23:35 UTC

cvs commit: httpd-2.0/modules/loggers mod_log_config.c

nd          2003/09/21 14:23:35

  Modified:    .        Tag: APACHE_2_0_BRANCH CHANGES STATUS
               modules/loggers Tag: APACHE_2_0_BRANCH mod_log_config.c
  Log:
  fix %b format to write really "-" if bytes_sent == 0.
  
  Submitted by: Kess
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.988.2.158 +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.988.2.157
  retrieving revision 1.988.2.158
  diff -u -u -r1.988.2.157 -r1.988.2.158
  --- CHANGES	17 Sep 2003 11:08:44 -0000	1.988.2.157
  +++ CHANGES	21 Sep 2003 21:23:34 -0000	1.988.2.158
  @@ -1,5 +1,8 @@
   Changes with Apache 2.0.48
   
  +  *) mod_log_config: Fix %b log format to write really "-" when 0 bytes
  +     were sent (e.g. with 304 or 204 response codes).  [Astrid Ke�ler]
  +
     *) Modify ap_get_client_block() to note if it has seen EOS.
        [Justin Erenkrantz]
   
  
  
  
  1.751.2.480 +1 -5      httpd-2.0/STATUS
  
  Index: STATUS
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/STATUS,v
  retrieving revision 1.751.2.479
  retrieving revision 1.751.2.480
  diff -u -u -r1.751.2.479 -r1.751.2.480
  --- STATUS	19 Sep 2003 20:06:31 -0000	1.751.2.479
  +++ STATUS	21 Sep 2003 21:23:34 -0000	1.751.2.480
  @@ -289,10 +289,6 @@
           modules/mappers/mod_rewrite.c: r1.228
         +1: nd
   
  -    * Fix mod_log_config's %b format to write "-" in case of bytes_sent == 0.
  -        modules/loggers/mod_log_config.c: r1.106
  -      +1: nd, jorton, trawick
  -
       * Overhaul of mod_include's filter parser.
           modules/filters/mod_include.c: r1.235, r1.236
           modules/filters/mod_include.h: r1.35
  
  
  
  No                   revision
  No                   revision
  1.95.2.7  +2 -2      httpd-2.0/modules/loggers/mod_log_config.c
  
  Index: mod_log_config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v
  retrieving revision 1.95.2.6
  retrieving revision 1.95.2.7
  diff -u -u -r1.95.2.6 -r1.95.2.7
  --- mod_log_config.c	14 May 2003 03:20:50 -0000	1.95.2.6
  +++ mod_log_config.c	21 Sep 2003 21:23:34 -0000	1.95.2.7
  @@ -418,7 +418,7 @@
   
   static const char *clf_log_bytes_sent(request_rec *r, char *a)
   {
  -    if (!r->sent_bodyct) {
  +    if (!r->sent_bodyct || !r->bytes_sent) {
           return "-";
       }
       else {
  @@ -428,7 +428,7 @@
   
   static const char *log_bytes_sent(request_rec *r, char *a)
   {
  -    if (!r->sent_bodyct) {
  +    if (!r->sent_bodyct || !r->bytes_sent) {
           return "0";
       }
       else {