X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/394938c479925750ffe56c28d281945ba4003a14..408ea0b9ceafdc9f861701cfb14b57d09aa47777:/maxpath.c diff --git a/maxpath.c b/maxpath.c index dfee16c..191ce8a 100644 --- a/maxpath.c +++ b/maxpath.c @@ -14,6 +14,7 @@ #include "hash.h" #include "keydb.h" #include "ll.h" +#include "log.h" #include "onak-conf.h" #include "stats.h" @@ -70,6 +71,7 @@ void findmaxpath(unsigned long max) int main(int argc, char *argv[]) { readconfig(NULL); + initlogthing("maxpath", config.logfile); initdb(true); inithash(); findmaxpath(30); @@ -77,6 +79,7 @@ int main(int argc, char *argv[]) findmaxpath(30); destroyhash(); cleanupdb(); + cleanuplogthing(); cleanupconfig(); return EXIT_SUCCESS;