]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Write "Including files" only in debug2
authorAlan T. DeKok <aland@freeradius.org>
Sun, 5 Apr 2026 14:51:32 +0000 (10:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 5 Apr 2026 16:17:30 +0000 (12:17 -0400)
src/lib/server/cf_file.c

index 966ae348297802066ebc86c817d7badc17676f30..6cf911c9a6503ac196768cbbbca07faf6a405bfd 100644 (file)
@@ -612,7 +612,7 @@ static int cf_file_open(CONF_SECTION *cs, char const *filename, bool from_dir, F
                fp = fopen(filename, "r");
        }
 
-       DEBUG2("including configuration file %s", filename);
+       if (DEBUG_ENABLED2) cf_log_debug(cs, "including configuration file %s", filename);
 
        if (!fp) {              
        error:
@@ -1251,7 +1251,7 @@ static int process_include(cf_stack_t *stack, CONF_SECTION *parent, char const *
                 */
                directory = talloc_strdup(parent, value);
 
-               cf_log_debug(parent, "Including files in directory \"%s\"", directory);
+               if (DEBUG_ENABLED2) cf_log_debug(parent, "Including files in directory \"%s\"", directory);
 
                dir = opendir(directory);
                if (!dir) {