Explorar el Código

Fixed logging bug with threads

Steven Engler hace 6 años
padre
commit
28acb7f326
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
   }