]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - sixdegrees.c
Update version to mark arch build.
[onak.git] / sixdegrees.c
index d647f5e78b468f1246d6b69883ade9cacc5ec01e..d7d650f3c1260f3265a941852560f29e4225cadf 100644 (file)
@@ -13,6 +13,7 @@
 #include "keydb.h"
 #include "keystructs.h"
 #include "ll.h"
 #include "keydb.h"
 #include "keystructs.h"
 #include "ll.h"
+#include "log.h"
 #include "onak-conf.h"
 #include "stats.h"
 
 #include "onak-conf.h"
 #include "stats.h"
 
@@ -124,12 +125,14 @@ int main(int argc, char *argv[])
                keyid = strtoll(argv[1], NULL, 16);
        }
 
                keyid = strtoll(argv[1], NULL, 16);
        }
 
-       readconfig();
-       initdb();
+       readconfig(NULL);
+       initlogthing("sixdegrees", config.logfile);
+       initdb(true);
        inithash();
        sixdegrees(getfullkeyid(keyid));
        destroyhash();
        cleanupdb();
        inithash();
        sixdegrees(getfullkeyid(keyid));
        destroyhash();
        cleanupdb();
+       cleanuplogthing();
        cleanupconfig();
 
        return 0;
        cleanupconfig();
 
        return 0;