mirror of
https://github.com/robotn/gohook.git
synced 2024-11-23 12:06:47 +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;
|
||||
} 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__);
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user