From 16394a3a1fed183c0b765e32cfd0f0de555f6c59 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 6 Jan 2017 20:09:03 +0100 Subject: [PATCH] Switch to log functions Signed-off-by: Sebastian Ramacher --- zathura/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zathura/main.c b/zathura/main.c index 1c1439a..082e0ce 100644 --- a/zathura/main.c +++ b/zathura/main.c @@ -1,7 +1,8 @@ /* See LICENSE file for license and copyright information */ -#include #include +#include + #include #include #include @@ -33,11 +34,11 @@ static void set_log_level(const char* loglevel) { if (loglevel == NULL || g_strcmp0(loglevel, "info") == 0) { - girara_set_debug_level(GIRARA_INFO); + girara_set_log_level(GIRARA_INFO); } else if (g_strcmp0(loglevel, "warning") == 0) { - girara_set_debug_level(GIRARA_WARNING); + girara_set_log_level(GIRARA_WARNING); } else if (g_strcmp0(loglevel, "error") == 0) { - girara_set_debug_level(GIRARA_ERROR); + girara_set_log_level(GIRARA_ERROR); } }