Changeset 21

Show
Ignore:
Timestamp:
03/13/04 18:00:45 (5 years ago)
Author:
minaguib
Message:

More verbose logging - remote IP address and status of request/disconnect

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/incorporate_libhttpd/wifidog/src/gateway.c

    r20 r21  
    7474                                * We got a connection 
    7575                                */ 
    76                                  debug(D_LOG_DEBUG, "Received connection"); 
     76                                 debug(D_LOG_DEBUG, "Received connection from %s", webserver->clientAddr); 
    7777                          if (httpdReadRequest(webserver) >=0) { 
    7878                                  /* 
    7979                                        * We read the request fine 
    8080                                        */ 
     81                                 debug(D_LOG_DEBUG, "Processing request from %s", webserver->clientAddr); 
    8182                                  httpdProcessRequest(webserver); 
    8283                          } 
     84                          else { 
     85                                debug(D_LOG_ERR, "No valid request received from %s", webserver->clientAddr); 
     86                  } 
     87                         debug(D_LOG_DEBUG, "Closing connection with %s", webserver->clientAddr); 
    8388                          httpdEndRequest(webserver); 
    8489                  }