#include <ctype.h>
#include <errno.h>
#include <unistd.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);
+
// Try opening an empty file
err = attempt_to_open(ctx, "/dev/null");
if (err == 0)