#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <syslog.h>
#include <loc/libloc.h>
#include <loc/database.h>
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);