]> git.ipfire.org Git - location/libloc.git/blobdiff - src/test-signature.c
Enable debug logging for all tests
[location/libloc.git] / src / test-signature.c
index cbbe15f7f7fc0578ed490a17c2c3feb6843f1767..620517c922469708976f5afe41398043c0d92758 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>
@@ -55,6 +56,9 @@ int main(int argc, char** argv) {
        if (err < 0)
                exit(EXIT_FAILURE);
 
+       // Enable debug logging
+       loc_set_log_priority(ctx, LOG_DEBUG);
+
        // Create an empty database
        struct loc_writer* writer;
        err = loc_writer_new(ctx, &writer, private_key1, private_key2);