X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/34b03028378025ad22c8d29f70e81109cee690c2..f5b6afd16482a73da5d3c366a306dde363a5d7b7:/lookup.c?ds=sidebyside diff --git a/lookup.c b/lookup.c index 00bc416..d6017d2 100644 --- a/lookup.c +++ b/lookup.c @@ -17,6 +17,7 @@ #include "getcgi.h" #include "keydb.h" #include "keyindex.h" +#include "log.h" #include "mem.h" #include "onak-conf.h" #include "parsekey.h" @@ -120,6 +121,7 @@ int main(int argc, char *argv[]) puts("Error: No key to search for supplied."); } else { readconfig(); + initlogthing("lookup", config.logfile); initdb(); switch (op) { case OP_GET: @@ -148,6 +150,7 @@ int main(int argc, char *argv[]) puts("Unknown operation!"); } cleanupdb(); + cleanuplogthing(); cleanupconfig(); } puts("
");