]> the.earth.li Git - onak.git/blobdiff - sixdegrees.c
Fix sixdegrees to initialise the logging infrastructure.
[onak.git] / sixdegrees.c
index d647f5e78b468f1246d6b69883ade9cacc5ec01e..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"
 
@@ -124,8 +125,9 @@ int main(int argc, char *argv[])
                keyid = strtoll(argv[1], NULL, 16);
        }
 
-       readconfig();
-       initdb();
+       readconfig(NULL);
+       initlogthing("sixdegrees", config.logfile);
+       initdb(true);
        inithash();
        sixdegrees(getfullkeyid(keyid));
        destroyhash();