Commit 1256f908 authored by Daniel Schömer's avatar Daniel Schömer Committed by Max Kellermann

log: properly check log_threshold

parent c9c7dc6e
......@@ -159,7 +159,7 @@ void setup_log_output(bool use_stdout)
#define log_func(func,level) \
mpd_printf void func(const char *fmt, ...) \
{ \
if ((int)log_threshold <= level) { \
if (level <= (int)log_threshold) { \
va_list args; \
va_start(args, fmt); \
g_logv(NULL, level, fmt, args); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment