Add a few more debug statements
authorkkalev <kkalev>
Sat, 17 May 2003 08:34:54 +0000 (08:34 +0000)
committerkkalev <kkalev>
Sat, 17 May 2003 08:34:54 +0000 (08:34 +0000)
src/modules/rlm_counter/rlm_counter.c

index 7cf9be9..d823533 100644 (file)
@@ -540,15 +540,19 @@ static int counter_accounting(void *instance, REQUEST *request)
         *      The REAL username, after stripping.
         */
        key_vp = (data->key_attr == PW_USER_NAME) ? request->username : pairfind(request->packet->vps, data->key_attr);
-       if (key_vp == NULL)
+       if (key_vp == NULL){
+               DEBUG("rlm_counter: Could not find the key-attribute in the request.");
                return RLM_MODULE_NOOP;
+       }
 
        /*
         *      Look for the attribute to use as a counter.
         */
        count_vp = pairfind(request->packet->vps, data->count_attr);
-       if (count_vp == NULL)
+       if (count_vp == NULL){
+               DEBUG("rlm_counter: Could not find the count-attribute in the request.");
                return RLM_MODULE_NOOP;
+       }
 
        key_datum.dptr = key_vp->strvalue;
        key_datum.dsize = key_vp->length;