mirror of
https://github.com/robotn/gohook.git
synced 2024-11-23 20:56:52 +08:00
Update some logger code, use warn not error
This commit is contained in:
parent
d7a0e66e8b
commit
98eb507a75
@ -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__);
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user