From 0d2eb1edf6b39b69cf52bb10b91fad2556d1a1ca Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Wed, 9 Apr 2008 16:10:53 -0700 Subject: [PATCH] stats_gatherer: verbose debug logging one of the storage servers is throwing foolscap violations about the return value of get_stats(). this adds a log of the data returned to the foolscap log event stream at the debug level '12' (between NOISY(10) and OPERATIONAL(20)) hopefully this will facilitate finding the cause of this problem. --- src/allmydata/stats.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/allmydata/stats.py b/src/allmydata/stats.py index 9d3d97dd..f5b6db05 100644 --- a/src/allmydata/stats.py +++ b/src/allmydata/stats.py @@ -107,7 +107,10 @@ class StatsProvider(foolscap.Referenceable, service.MultiService): stats = {} for sp in self.stats_producers: stats.update(sp.get_stats()) - return { 'counters': self.counters, 'stats': stats } + #return { 'counters': self.counters, 'stats': stats } + ret = { 'counters': self.counters, 'stats': stats } + log.msg(format='get_stats() -> %s', args=(pprint.pformat(ret),), level=12) + return ret def _connected(self, gatherer, nickname): gatherer.callRemoteOnly('provide', self, nickname or '') -- 2.45.2