Changeset 89

Show
Ignore:
Timestamp:
04/19/04 22:03:49 (9 years ago)
Author:
aprilp
Message:

Changed some debug severity levels

Location:
trunk/wifidog
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r88 r89  
    11# $Header$ 
     22004-04-19  Philippe April <papril777@yahoo.com> 
     3    * Changed some debugging severity 
     4 
    252004-04-19  Benoit Gr�goire  <bock@step.polymtl.ca> 
    3         * doc/doxygen.cfg.in:  Config tweaking.  Exclude libhttpd directory, enable todolist and buglist 
    4         * src/common.h:  Include the autoconf config.h.  Add a todo to state that this file is evil. 
    5         * src/userclasses.h:  As requested, document a file to show how doxygen works.  Check out what happens with the todo in "Related Pages" in the docs.  You all installed doxygen, right?  
    6  
    7 2004-04-18  Benoit Gr�goire  <bock@step.polymtl.ca> 
    8         * Properly integrate libhttpd into the source tree ;)  Note that this will create a proper system wide shared librery for libghttpd.  Still to be done:  1- Store Mina's patch somewhere,  in case we want to upgrade libhttpd.  2-Add configure option not to build httpd, and use an already installed one. 
     6        * Properly integrate libhttpd into the source tree ;)  Note that this will create a proper system wide shared library for libghttpd.  Still to be done:  1- Store Mina's patch somewhere,  in case we want to upgrade libhttpd.  2-Add configure option not to build httpd, and use an already installed one. 
    97 
    1082004-04-18  Alexandre Carmel-Veilleux <acv@acv.ca> 
  • trunk/wifidog/src/auth.c

    r84 r89  
    124124        /* If we get here, we've got a profile > 0 */ 
    125125         
    126         debug(D_LOG_DEBUG, "Node %s with mac %s and profile " 
     126        debug(D_LOG_INFO, "Node %s with mac %s and profile " 
    127127                "%d validated", node->ip, node->mac, profile); 
    128128         
     
    130130         
    131131        if (tmp_uc == NULL) { 
    132                 debug(D_LOG_DEBUG, "Profile %d undefined", profile); 
     132                debug(D_LOG_WARNING, "Profile %d undefined", profile); 
    133133                _http_output(node->fd, "User Class not defined"); 
    134134                node->fd = 0; 
     
    136136                return; 
    137137        } else { 
    138                 debug(D_LOG_DEBUG, "Profile %d UserClasses retrieved", profile); 
     138                debug(D_LOG_INFO, "Profile %d UserClasses retrieved", profile); 
    139139        } 
    140140         
  • trunk/wifidog/src/centralserver.c

    r65 r89  
    5656        memset(&(their_addr.sin_zero), '\0', 8); 
    5757 
    58         debug(D_LOG_DEBUG, "Connecting to auth server %s on port %d",  
     58        debug(D_LOG_INFO, "Connecting to auth server %s on port %d",  
    5959                config.authserv_hostname, config.authserv_port); 
    6060 
     
    8282        if ((p1 = strstr(buf, "Profile: "))) { 
    8383                if (sscanf(p1, "Profile: %d", &profile) == 1) { 
    84                         debug(D_LOG_DEBUG, "Auth server returned profile %d", 
     84                        debug(D_LOG_INFO, "Auth server returned profile %d", 
    8585                                profile); 
    8686                        return(profile); 
    8787                } else { 
    88                         debug(D_LOG_DEBUG, "Auth server did not return " 
     88                        debug(D_LOG_WARNING, "Auth server did not return " 
    8989                                "expected information"); 
    9090                        return(-1); 
  • trunk/wifidog/src/firewall.c

    r86 r89  
    181181        } 
    182182 
    183         debug(D_LOG_INFO, "Setting firewall rules"); 
     183        debug(D_LOG_NOTICE, "Setting firewall rules"); 
    184184 
    185185        if ((rc = execute(command)) != 0) { 
     
    213213        } 
    214214 
    215         debug(D_LOG_INFO, "Flushing firewall rules"); 
     215        debug(D_LOG_NOTICE, "Flushing firewall rules"); 
    216216 
    217217        return(execute(command)); 
     
    248248                                if (p1->counter == counter) { 
    249249                                        /* expire clients for inactivity */ 
    250                                         debug(D_LOG_DEBUG, "Client %s was " 
     250                                        debug(D_LOG_INFO, "Client %s was " 
    251251                                                "inactive", ip); 
    252252                                        fw_deny(p1->ip, p1->mac, 
     
    282282                                        } else if (profile <= 0) { 
    283283                                                /* failed */ 
    284                                                 debug(D_LOG_DEBUG, "Auth " 
     284                                                debug(D_LOG_NOTICE, "Auth " 
    285285                                                        "failed for client %s", 
    286286                                                        ip); 
     
    290290                                        } else { 
    291291                                                /* successful */ 
    292                                                 debug(D_LOG_DEBUG, "Updated " 
     292                                                debug(D_LOG_INFO, "Updated " 
    293293                                                        "client %s counter to " 
    294294                                                        "%ld bytes", ip, 
     
    342342 
    343343        if (curnode == NULL) { 
    344                 debug(D_LOG_DEBUG, "Out of memory"); 
     344                debug(D_LOG_ERR, "Out of memory"); 
    345345                exit(-1); 
    346346        } 
     
    360360        } 
    361361 
    362         debug(D_LOG_DEBUG, "Added a new node to linked list: IP: %s Token: %s", 
     362        debug(D_LOG_INFO, "Added a new node to linked list: IP: %s Token: %s", 
    363363                ip, token); 
    364364         
     
    465465{ 
    466466        if (node->rights->end_time <= time(NULL)) { 
    467                 debug(D_LOG_DEBUG, "Connection %s has expired", node->ip); 
     467                debug(D_LOG_INFO, "Connection %s has expired", node->ip); 
    468468                return 0; 
    469469        } 
  • trunk/wifidog/src/gateway.c

    r85 r89  
    4545 
    4646        // Initialize the web server 
    47         debug(D_LOG_DEBUG, "Creating web server on %s:%d",  
     47        debug(D_LOG_NOTICE, "Creating web server on %s:%d",  
    4848                        config.gw_address, config.gw_port); 
    4949        webserver = httpdCreate(config.gw_address, config.gw_port); 
     
    6969        pthread_detach(tid); 
    7070         
    71         debug(D_LOG_DEBUG, "Waiting for connections"); 
     71        debug(D_LOG_NOTICE, "Waiting for connections"); 
    7272        while(1) { 
    7373                tv.tv_sec = config.checkinterval; 
     
    9191                         * We got a connection 
    9292                         */ 
    93                         debug(D_LOG_DEBUG, "Received connection from %s", 
     93                        debug(D_LOG_INFO, "Received connection from %s", 
    9494                                webserver->clientAddr); 
    9595                        if (httpdReadRequest(webserver) >=0) { 
     
    169169        fw_destroy(); 
    170170 
    171         debug(D_LOG_INFO, "Exiting..."); 
     171        debug(D_LOG_WARNING, "Exiting..."); 
    172172        exit(0); 
    173173}