Convert error messages to debug messages.
authorAlan T. DeKok <aland@freeradius.org>
Wed, 26 Oct 2011 09:49:20 +0000 (11:49 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 27 Oct 2011 07:31:31 +0000 (09:31 +0200)
If a module returns NOOP, it's not an error

src/modules/rlm_radutmp/rlm_radutmp.c
src/modules/rlm_unix/rlm_unix.c

index 65fe1c0..873a3fa 100644 (file)
@@ -206,7 +206,7 @@ static int radutmp_accounting(void *instance, REQUEST *request)
         *      Which type is this.
         */
        if ((vp = pairfind(request->packet->vps, PW_ACCT_STATUS_TYPE, 0)) == NULL) {
-               radlog(L_ERR, "rlm_radutmp: No Accounting-Status-Type record.");
+               RDEBUG("No Accounting-Status-Type record.");
                return RLM_MODULE_NOOP;
        }
        status = vp->vp_integer;
index e0ca724..bf4ddb4 100644 (file)
@@ -440,7 +440,7 @@ static int unix_accounting(void *instance, REQUEST *request)
         *      Which type is this.
         */
        if ((vp = pairfind(request->packet->vps, PW_ACCT_STATUS_TYPE, 0))==NULL) {
-               radlog(L_ERR, "rlm_unix: no Accounting-Status-Type attribute in request.");
+               RDEBUG("no Accounting-Status-Type attribute in request.");
                return RLM_MODULE_NOOP;
        }
        status = vp->vp_integer;