X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/6a721665f41611f80cb878237b5d7fa650ccbe20..5538c5782135666d73f7615a37ea9689afa07dcd:/sixdegrees.c?ds=sidebyside diff --git a/sixdegrees.c b/sixdegrees.c index d647f5e..d7d650f 100644 --- a/sixdegrees.c +++ b/sixdegrees.c @@ -13,6 +13,7 @@ #include "keydb.h" #include "keystructs.h" #include "ll.h" +#include "log.h" #include "onak-conf.h" #include "stats.h" @@ -124,12 +125,14 @@ 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(); cleanupdb(); + cleanuplogthing(); cleanupconfig(); return 0;