]> git.ipfire.org Git - location/libloc.git/blobdiff - src/test-database.c
Enable debug logging for all tests
[location/libloc.git] / src / test-database.c
index 4fdb774f7fc853128153c94e31ede21df08b5218..b4a75c43880be8c47e2ba73b7a61bd3e8d1c359a 100644 (file)
@@ -22,6 +22,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <unistd.h>
+#include <syslog.h>
 
 #include <loc/libloc.h>
 #include <loc/database.h>
@@ -66,6 +67,9 @@ int main(int argc, char** argv) {
        if (err < 0)
                exit(EXIT_FAILURE);
 
+       // Enable debug logging
+       loc_set_log_priority(ctx, LOG_DEBUG);
+
        // Try opening an empty file
        err = attempt_to_open(ctx, "/dev/null");
        if (err == 0)