pud: switch to syslog logging on successful loading of plugin
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Jul 2012 10:32:07 +0000 (12:32 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Jul 2012 10:37:45 +0000 (12:37 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/pud.c

index db1823c..6213777 100644 (file)
@@ -346,6 +346,9 @@ bool initPud(void) {
         */
        olsr_parser_add_function(&packetReceivedFromOlsr, PUD_OLSR_MSG_TYPE);
 
+       /* switch to syslog logging, load was succesful */
+       pudErrorUseSysLog = !olsr_cnf->no_fork;
+
        return true;
 
        error: closePud();