Browse Source

Don't call flush_pending_log_callbacks while logging LD_NOCB messages.

Found by boboper.
Robert Ransom 13 years ago
parent
commit
4a9d60734c
1 changed files with 1 additions and 1 deletions
  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;