tools: always set the log handler for debug-events and debug-gui

This way errors are highlighted in red even without --verbose

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-07-19 14:10:32 +10:00
parent d5c0aed8a3
commit a3cc5f3f64

View file

@ -267,10 +267,9 @@ tools_open_udev(const char *seat, bool verbose, bool *grab)
goto out;
}
if (verbose) {
libinput_log_set_handler(li, log_handler);
libinput_log_set_handler(li, log_handler);
if (verbose)
libinput_log_set_priority(li, LIBINPUT_LOG_PRIORITY_DEBUG);
}
if (libinput_udev_assign_seat(li, seat)) {
fprintf(stderr, "Failed to set seat\n");