these messages don't need to go to the main radiusd.log
authorAlan T. DeKok <aland@freeradius.org>
Tue, 18 Apr 2017 13:33:50 +0000 (09:33 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 18 Apr 2017 16:08:39 +0000 (12:08 -0400)
src/modules/rlm_eap/types/rlm_eap_peap/peap.c

index 801bd7c..c0e21f4 100644 (file)
@@ -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;