[or-cvs] [tor/maint-0.2.2 4/5] Don't call flush_pending_log_callbacks while logging LD_NOCB messages.
nickm at torproject.org
nickm at torproject.org
Tue Dec 21 20:45:15 UTC 2010
Author: Robert Ransom <rransom.8774 at gmail.com>
Date: Sat, 11 Dec 2010 04:41:35 -0800
Subject: Don't call flush_pending_log_callbacks while logging LD_NOCB messages.
Commit: 4a9d60734ce47cb3b5cb254e522116cd26b4823f
Found by boboper.
---
src/common/log.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/common/log.c b/src/common/log.c
index f26c5ef..f63c3fb 100644
--- a/src/common/log.c
+++ b/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;
--
1.7.1
More information about the tor-commits
mailing list