log: Move log level check so that it affects all handlers.
authorUwe Hermann <uwe@hermann-uwe.de>
Sat, 21 Apr 2018 22:17:49 +0000 (00:17 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 21 Apr 2018 22:17:49 +0000 (00:17 +0200)
commit5292279cbe4c228bbc31b8caf05eb6ebdfa29bde
treefeb9eeb2f351625b88e88c26e984db63d8ec851c
parent752086e9c8a0f7663f56a0a4ed65cc8f3591654b
log: Move log level check so that it affects all handlers.

Before this change, the loglevel check would only be performed for the
default log handler in libsigrokdecode, but not for other handlers set
via srd_log_callback_set().

This fixes bug #698.
log.c