Update some logger code, use warn not error

This commit is contained in:
vcaesar 2019-12-08 15:57:06 -04:00
parent d7a0e66e8b
commit 98eb507a75
2 changed files with 4 additions and 3 deletions

View File

@ -1880,8 +1880,9 @@ void load_input_helper(Display *disp) {
is_evdev = true; is_evdev = true;
} else } else
#endif #endif
if (strncmp(layout_name, prefix_xfree86, strlen(prefix_xfree86)) != 0) { 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", // "%s [%u]: Unknown keycode name '%s', please file a bug report!\n",
// __FUNCTION__, __LINE__, layout_name); // __FUNCTION__, __LINE__, layout_name);
} }
@ -1894,7 +1895,7 @@ void load_input_helper(Display *disp) {
XkbFreeClientMap(desc, XkbGBN_AllComponentsMask, True); XkbFreeClientMap(desc, XkbGBN_AllComponentsMask, True);
} }
else { else {
logger(LOG_LEVEL_ERROR, logger(LOG_LEVEL_WARN,
"%s [%u]: XkbGetKeyboard failed to locate a valid keyboard!\n", "%s [%u]: XkbGetKeyboard failed to locate a valid keyboard!\n",
__FUNCTION__, __LINE__); __FUNCTION__, __LINE__);
} }

View File

@ -444,7 +444,7 @@ void on_library_load() {
// Open local display. // Open local display.
properties_disp = XOpenDisplay(XDisplayName(NULL)); properties_disp = XOpenDisplay(XDisplayName(NULL));
if (properties_disp == 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!"); __FUNCTION__, __LINE__, "XOpenDisplay failure!");
} }
else { else {