瀏覽代碼

Fix log_level check

BtbN 11 年之前
父節點
當前提交
23c3dfc6be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/util/base.c

+ 1 - 1
libobs/util/base.c

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