]> git.ipfire.org Git - location/libloc.git/blobdiff - src/test-as.c
Enable debug logging for all tests
[location/libloc.git] / src / test-as.c
index a2d0ed588f037b03a268827a07978b04f335ed7e..839a04ce2623718147d787256b084b66b59f5b0c 100644 (file)
@@ -17,6 +17,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <syslog.h>
 
 #include <loc/libloc.h>
 #include <loc/database.h>
@@ -32,6 +33,9 @@ int main(int argc, char** argv) {
        if (err < 0)
                exit(EXIT_FAILURE);
 
+       // Enable debug logging
+       loc_set_log_priority(ctx, LOG_DEBUG);
+
        // Create a database
        struct loc_writer* writer;
        err = loc_writer_new(ctx, &writer, NULL, NULL);