Fix log_level check

This commit is contained in:
BtbN
2014-04-03 23:41:07 +02:00
parent c25f10595d
commit 23c3dfc6be

View File

@@ -35,7 +35,7 @@ static void def_log_handler(int log_level, const char *format,
char out[4096];
vsnprintf(out, sizeof(out), format, args);
if (log_level >= log_output_level) {
if (log_level <= log_output_level) {
switch (log_level) {
case LOG_DEBUG:
printf("debug: %s\n", out);