]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Remove stdout zlog changes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 Sep 2015 19:19:55 +0000 (15:19 -0400)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 26 May 2016 00:38:33 +0000 (20:38 -0400)
Quagga start has unnecessary pim messages to stdout.  Causing some confusion.
Logging is already saving this information in pimd.log

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_main.c

index f5957b0a4d963af088671d23a3eac0383c464a8f..96b784c2c82bf46ae0224da76ab6020f533e78fc 100644 (file)
@@ -186,12 +186,6 @@ int main(int argc, char** argv, char** envp) {
 
   master = thread_master_create();
 
-  /*
-   * Temporarily send zlog to stdout
-   */
-  zlog_default->maxlvl[ZLOG_DEST_STDOUT] = zlog_default->default_lvl;
-  zlog_notice("Boot logging temporarily directed to stdout - begin");
-
   zlog_notice("Quagga %s " PIMD_PROGNAME " %s starting",
              QUAGGA_VERSION, PIMD_VERSION);
 
@@ -207,17 +201,7 @@ int main(int argc, char** argv, char** envp) {
   pim_init();
 
   /*
-   * reset zlog default, then will obey configuration file
-   */
-  zlog_notice("Boot logging temporarily directed to stdout - end");
-#if 0
-  /* this would disable logging to stdout, but config has not been
-     loaded yet to reconfig the logging output */
-  zlog_default->maxlvl[ZLOG_DEST_STDOUT] = ZLOG_DISABLED;
-#endif
-
-  /*
-    Initialize zclient "update" and "lookup" sockets
+   * Initialize zclient "update" and "lookup" sockets
    */
   pim_zebra_init(zebra_sock_path);