From 98eb507a75d9f7943fcdb9642c14b4ac5aa75479 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 8 Dec 2019 15:57:06 -0400 Subject: [PATCH] Update some logger code, use warn not error --- hook/x11/input_c.h | 5 +++-- hook/x11/properties_c.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hook/x11/input_c.h b/hook/x11/input_c.h index e132d03..b734189 100644 --- a/hook/x11/input_c.h +++ b/hook/x11/input_c.h @@ -1880,8 +1880,9 @@ void load_input_helper(Display *disp) { is_evdev = true; } else #endif + if (strncmp(layout_name, prefix_xfree86, strlen(prefix_xfree86)) != 0) { - // logger(LOG_LEVEL_ERROR, + // logger(LOG_LEVEL_WARN, // "%s [%u]: Unknown keycode name '%s', please file a bug report!\n", // __FUNCTION__, __LINE__, layout_name); } @@ -1894,7 +1895,7 @@ void load_input_helper(Display *disp) { XkbFreeClientMap(desc, XkbGBN_AllComponentsMask, True); } else { - logger(LOG_LEVEL_ERROR, + logger(LOG_LEVEL_WARN, "%s [%u]: XkbGetKeyboard failed to locate a valid keyboard!\n", __FUNCTION__, __LINE__); } diff --git a/hook/x11/properties_c.h b/hook/x11/properties_c.h index 8a94b92..1124df0 100644 --- a/hook/x11/properties_c.h +++ b/hook/x11/properties_c.h @@ -444,7 +444,7 @@ void on_library_load() { // Open local display. properties_disp = XOpenDisplay(XDisplayName(NULL)); if (properties_disp == NULL) { - logger(LOG_LEVEL_ERROR, "%s [%u]: %s\n", + logger(LOG_LEVEL_WARN, "%s [%u]: %s\n", __FUNCTION__, __LINE__, "XOpenDisplay failure!"); } else {