From e3935ad1431623b5e3966e95cd75b45e7e00e278 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Mon, 14 Jan 2019 23:30:54 -0500 Subject: Implement logging and remove wlroots dependency This implements a simpler version of the wlroots logger for swaylock. With this logger, the dependency on wlroots can be dropped. This also adds a debug flag and disables debugging output by default --- pango.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pango.c') diff --git a/pango.c b/pango.c index a3ed543..097816c 100644 --- a/pango.c +++ b/pango.c @@ -6,8 +6,8 @@ #include #include #include -#include #include "cairo.h" +#include "log.h" static const char overflow[] = "[buffer overflow]"; static const int max_chars = 16384; @@ -70,8 +70,8 @@ PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, pango_layout_set_text(layout, buf, -1); free(buf); } else { - wlr_log(WLR_ERROR, "pango_parse_markup '%s' -> error %s", text, - error->message); + swaylock_log(LOG_ERROR, "pango_parse_markup '%s' -> error %s", + text, error->message); g_error_free(error); markup = false; // fallback to plain text } -- cgit v1.2.3