From: Alan T. DeKok Date: Tue, 18 Apr 2017 13:33:50 +0000 (-0400) Subject: these messages don't need to go to the main radiusd.log X-Git-Tag: release_3_0_14~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c37760e091474ac49b514809d698d260b6c12e;p=thirdparty%2Ffreeradius-server.git these messages don't need to go to the main radiusd.log --- diff --git a/src/modules/rlm_eap/types/rlm_eap_peap/peap.c b/src/modules/rlm_eap/types/rlm_eap_peap/peap.c index 801bd7c8667..c0e21f4c1ef 100644 --- a/src/modules/rlm_eap/types/rlm_eap_peap/peap.c +++ b/src/modules/rlm_eap/types/rlm_eap_peap/peap.c @@ -893,13 +893,15 @@ rlm_rcode_t eappeap_process(eap_handler_t *handler, tls_session_t *tls_session, * Supplicant ACKs our failure. */ case PEAP_STATUS_SENT_TLV_FAILURE: - RINDENT(); - REDEBUG("The users session was previously rejected: returning reject (again.)"); - RIDEBUG("This means you need to read the PREVIOUS messages in the debug output"); - RIDEBUG("to find out the reason why the user was rejected"); - RIDEBUG("Look for \"reject\" or \"fail\". Those earlier messages will tell you"); - RIDEBUG("what went wrong, and how to fix the problem"); - REXDENT(); + if (rad_debug_lvl) { + RINDENT(); + REDEBUG("The users session was previously rejected: returning reject (again.)"); + RIDEBUG("This means you need to read the PREVIOUS messages in the debug output"); + RIDEBUG("to find out the reason why the user was rejected"); + RIDEBUG("Look for \"reject\" or \"fail\". Those earlier messages will tell you"); + RIDEBUG("what went wrong, and how to fix the problem"); + REXDENT(); + } return RLM_MODULE_REJECT;