mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-26 21:30:13 +01:00
libei: skip logging if we don't have a log handler
Mostly useful for the unit tests, saves on setup. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
03e5a547f5
commit
659de273e9
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ ei_log_msg_va(struct ei *ei,
|
|||
const char *format,
|
||||
va_list ap)
|
||||
{
|
||||
if (ei->log.priority > priority)
|
||||
if (ei->log.priority > priority || !ei->log.handler)
|
||||
return;
|
||||
|
||||
char line[1024];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue