From: Alan T. DeKok Date: Fri, 6 Aug 2010 15:24:54 +0000 (+0200) Subject: Regularize error messages X-Git-Tag: release_3_0_0_beta0~1309 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=90729bfce0198aabdf9148b155cfcb6f0c18825f Regularize error messages --- diff --git a/src/modules/rlm_chap/rlm_chap.c b/src/modules/rlm_chap/rlm_chap.c index e0f3bc9..6c5f08b 100644 --- a/src/modules/rlm_chap/rlm_chap.c +++ b/src/modules/rlm_chap/rlm_chap.c @@ -78,17 +78,17 @@ static int chap_authenticate(void *instance, REQUEST *request) chap = pairfind(request->packet->vps, PW_CHAP_PASSWORD, 0); if (!chap) { - radlog_request(L_AUTH, 0, request, "rlm_chap: Attribute \"CHAP-Password\" is required for authentication."); + RDEBUG("ERROR: You set 'Auth-Type = CHAP' for a request that does not contain a CHAP-Password attribute!"); return RLM_MODULE_INVALID; } if (chap->length == 0) { - radlog_request(L_ERR, 0, request, "rlm_chap: empty password supplied"); + RDEBUG("ERROR: CHAP-Password is empty"); return RLM_MODULE_INVALID; } if (chap->length != CHAP_VALUE_LENGTH + 1) { - radlog_request(L_ERR, 0, request, "rlm_chap: password supplied has wrong length"); + RDEBUG("ERROR: CHAP-Password has invalid length"); return RLM_MODULE_INVALID; }