log: properly check log_threshold

This commit is contained in:
Daniel Schömer 2008-11-09 22:27:58 +01:00 committed by Max Kellermann
parent c9c7dc6e00
commit 1256f90825
1 changed files with 1 additions and 1 deletions

View File

@ -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); \