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>
(cherry picked from commit a3cc5f3f64)
This commit is contained in:
Peter Hutterer 2018-07-19 14:10:32 +10:00
parent a9338412b0
commit 5781f29612

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");