mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 08:03:45 +01:00
Switch to log functions
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
fda7aa4261
commit
16394a3a1f
@ -1,7 +1,8 @@
|
|||||||
/* See LICENSE file for license and copyright information */
|
/* See LICENSE file for license and copyright information */
|
||||||
|
|
||||||
#include <girara/utils.h>
|
|
||||||
#include <girara/settings.h>
|
#include <girara/settings.h>
|
||||||
|
#include <girara/log.h>
|
||||||
|
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -33,11 +34,11 @@ static void
|
|||||||
set_log_level(const char* loglevel)
|
set_log_level(const char* loglevel)
|
||||||
{
|
{
|
||||||
if (loglevel == NULL || g_strcmp0(loglevel, "info") == 0) {
|
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) {
|
} 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) {
|
} else if (g_strcmp0(loglevel, "error") == 0) {
|
||||||
girara_set_debug_level(GIRARA_ERROR);
|
girara_set_log_level(GIRARA_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user