]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix modules debug
authorAlan T. DeKok <aland@freeradius.org>
Mon, 9 Nov 2015 20:46:34 +0000 (15:46 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 9 Nov 2015 20:46:34 +0000 (15:46 -0500)
src/main/modules.c

index a679e764370b53611c4f7434ea495b8a189023dc..45999d76e55ea1c5a9d000c1b759d6ed239bd8d6 100644 (file)
@@ -1921,6 +1921,8 @@ int modules_init(CONF_SECTION *config)
 
        DEBUG2("%s: #### Instantiating modules ####", main_config.name);
 
+       cf_log_info(config, " modules {");
+
        /*
         *      Loop over module definitions, looking for duplicates.
         *
@@ -1965,7 +1967,7 @@ int modules_init(CONF_SECTION *config)
                module_instance_t *module;
                char const *name;
 
-               cf_log_info(cs, " instantiate {");
+               cf_log_info(cs, "  instantiate {");
 
                /*
                 *  Loop over the items in the 'instantiate' section.
@@ -2078,7 +2080,7 @@ int modules_init(CONF_SECTION *config)
                        }  /* handle subsections */
                } /* loop over the "instantiate" section */
 
-               cf_log_info(cs, " }");
+               cf_log_info(cs, "  }");
        } /* if there's an 'instantiate' section. */
 
        /*
@@ -2087,7 +2089,6 @@ int modules_init(CONF_SECTION *config)
         *      because we've now split up the modules into
         *      mods-enabled.
         */
-       cf_log_info(cs, " modules {");
        for (ci=cf_item_find_next(modules, NULL);
             ci != NULL;
             ci=next) {
@@ -2106,7 +2107,7 @@ int modules_init(CONF_SECTION *config)
                module = module_instantiate(modules, name);
                if (!module) return -1;
        }
-       cf_log_info(cs, " } # modules");
+       cf_log_info(config, " } # modules");
 
        if (virtual_servers_load(config) < 0) return -1;