Browse Source

Fixed logging bug with threads

Steven Engler 4 years ago
parent
commit
28acb7f326
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/log/log.c

+ 1 - 1
src/lib/log/log.c

@@ -574,7 +574,7 @@ MOCK_IMPL(STATIC void,
 logv,(int severity, log_domain_mask_t domain, const char *funcname,
      const char *suffix, const char *format, va_list ap))
 {
-  if (!in_main_thread() && severity < LOG_WARN) {
+  if (!in_main_thread() && severity > LOG_WARN) {
     // don't log unimportant messages from other threads
     return;
   }