]> git.ipfire.org Git - location/libloc.git/blobdiff - src/test-country.c
Enable debug logging for all tests
[location/libloc.git] / src / test-country.c
index 4a9c9c1dcd2c8f03351205da1fcaf2e5c8fe3c9c..d78c773b07a7a18bbeb0ae2fd6f6f21037c58c4c 100644 (file)
@@ -19,6 +19,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
+#include <syslog.h>
 
 #include <loc/libloc.h>
 #include <loc/country.h>
@@ -47,6 +48,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);