mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-05 19:28:02 +02: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,
|
const char *format,
|
||||||
va_list ap)
|
va_list ap)
|
||||||
{
|
{
|
||||||
if (ei->log.priority > priority)
|
if (ei->log.priority > priority || !ei->log.handler)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char line[1024];
|
char line[1024];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue