浏览代码

Don't call flush_pending_log_callbacks while logging LD_NOCB messages.

Found by boboper.
Robert Ransom 14 年之前
父节点
当前提交
4a9d60734c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/log.c

+ 1 - 1
src/common/log.c

@@ -280,7 +280,7 @@ logv(int severity, log_domain_mask_t domain, const char *funcname,
   assert(severity >= LOG_ERR && severity <= LOG_DEBUG);
   LOCK_LOGS();
 
-  if (smartlist_len(pending_cb_messages))
+  if ((! (domain & LD_NOCB)) && smartlist_len(pending_cb_messages))
     flush_pending_log_callbacks();
 
   lf = logfiles;