[tor-commits] [stem/master] Lowering cache hits to the TRACE runlevel
atagar at torproject.org
atagar at torproject.org
Thu Dec 13 16:42:22 UTC 2012
commit 9b5ff19be35ebbf8c75772a63406ba23762b37de
Author: Damian Johnson <atagar at torproject.org>
Date: Wed Dec 12 09:32:02 2012 -0800
Lowering cache hits to the TRACE runlevel
In practice logging GETINFO and GETCONF cache hits can be very noisy (within a
minute of running it with arm there were around a hundred duplicates). Lowering
the visability of those events.
---
stem/control.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/control.py b/stem/control.py
index 5c3863a..d615689 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -784,7 +784,7 @@ class Controller(BaseController):
# if everything was cached then short circuit making the query
if not params:
- log.debug("GETINFO %s (cache fetch)" % " ".join(reply.keys()))
+ log.trace("GETINFO %s (cache fetch)" % " ".join(reply.keys()))
if is_multiple: return reply
else: return reply.values()[0]
@@ -1085,7 +1085,7 @@ class Controller(BaseController):
# if everything was cached then short circuit making the query
if not lookup_params:
- log.debug("GETCONF %s (cache fetch)" % " ".join(reply.keys()))
+ log.trace("GETCONF %s (cache fetch)" % " ".join(reply.keys()))
if multiple:
return reply
More information about the tor-commits
mailing list