From a3cc5f3f649ea87fa1a08fb2ff3852ddea76352f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 19 Jul 2018 14:10:32 +1000 Subject: [PATCH] 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 --- tools/shared.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/shared.c b/tools/shared.c index 2a53343d..f68ffead 100644 --- a/tools/shared.c +++ b/tools/shared.c @@ -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");