Added an extra reload_logger() after *.so is loaded in case a custom config handler...
authorAnthony Minessale II <anthmct@yahoo.com>
Tue, 15 Jun 2004 18:48:07 +0000 (18:48 +0000)
committerAnthony Minessale II <anthmct@yahoo.com>
Tue, 15 Jun 2004 18:48:07 +0000 (18:48 +0000)
to solve a chicken/egg issue where logger.conf is parsed before lodable modules are loaded.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3217 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index 556f776..f5da120 100755 (executable)
@@ -1682,6 +1682,9 @@ int main(int argc, char *argv[])
                printf(term_quit());
                exit(1);
        }
+       /* reload logger in case a custom config handler binded to logger.conf*/
+    reload_logger(0);
+
        /* We might have the option of showing a console, but for now just
           do nothing... */
        if (option_console && !option_verbose)