]> git.ipfire.org Git - location/libloc.git/blobdiff - src/test-stringpool.c
Enable debug logging for all tests
[location/libloc.git] / src / test-stringpool.c
index 3cde27a68fb275911be3f473eade9612987a5bc0..3c2890a0ae9fe7f599e61a99b336b224b24fe5c6 100644 (file)
@@ -24,6 +24,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <time.h>
+#include <syslog.h>
 
 #include <loc/libloc.h>
 #include <loc/stringpool.h>
@@ -54,6 +55,9 @@ int main(int argc, char** argv) {
        if (err < 0)
                exit(EXIT_FAILURE);
 
+       // Enable debug logging
+       loc_set_log_priority(ctx, LOG_DEBUG);
+
        // Create the stringpool
        struct loc_stringpool* pool;
        err = loc_stringpool_new(ctx, &pool);