test: when restoring the log handler to defaults, also restore log priority
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 16 Aug 2017 23:28:52 +0000 (01:28 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 16 Aug 2017 23:29:32 +0000 (01:29 +0200)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c

index c33ba7598775f57a3d41b04e83899d40dbeb70e7..196fb1fa273bcc418d20f30e14fd4c1ea4ea1a20 100644 (file)
@@ -1351,6 +1351,8 @@ void
 litest_restore_log_handler(struct libinput *libinput)
 {
        libinput_log_set_handler(libinput, litest_log_handler);
+       if (verbose)
+               libinput_log_set_priority(libinput, LIBINPUT_LOG_PRIORITY_DEBUG);
 }
 
 LIBINPUT_ATTRIBUTE_PRINTF(3, 0)