]> the.earth.li Git - onak.git/commitdiff
Fix sixdegrees to initialise the logging infrastructure.
authorJonathan McDowell <noodles@earth.li>
Thu, 23 Sep 2004 15:20:16 +0000 (15:20 +0000)
committerJonathan McDowell <noodles@earth.li>
Thu, 23 Sep 2004 15:20:16 +0000 (15:20 +0000)
sixdegrees wasn't initialising the logging infrastructure, so would
log to stderr rather than the log file for example. Fix this.

sixdegrees.c

index 0dd324f0c139aee07b9b19fc7beae68e84336092..b78397f1682275c3a7dac19c8d64cbc0d0080a2a 100644 (file)
@@ -13,6 +13,7 @@
 #include "keydb.h"
 #include "keystructs.h"
 #include "ll.h"
+#include "log.h"
 #include "onak-conf.h"
 #include "stats.h"
 
@@ -125,6 +126,7 @@ int main(int argc, char *argv[])
        }
 
        readconfig(NULL);
+       initlogthing("sixdegrees", config.logfile);
        initdb(true);
        inithash();
        sixdegrees(getfullkeyid(keyid));