From: robk-tahoe Date: Wed, 9 Apr 2008 23:10:53 +0000 (-0700) Subject: stats_gatherer: verbose debug logging X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/architecture.txt?a=commitdiff_plain;h=0d2eb1edf6b39b69cf52bb10b91fad2556d1a1ca;p=tahoe-lafs%2Ftahoe-lafs.git 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. --- 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 '')