mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-19 15:53:48 +00:00
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.
This commit is contained in:
@ -107,7 +107,10 @@ class StatsProvider(foolscap.Referenceable, service.MultiService):
|
|||||||
stats = {}
|
stats = {}
|
||||||
for sp in self.stats_producers:
|
for sp in self.stats_producers:
|
||||||
stats.update(sp.get_stats())
|
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):
|
def _connected(self, gatherer, nickname):
|
||||||
gatherer.callRemoteOnly('provide', self, nickname or '')
|
gatherer.callRemoteOnly('provide', self, nickname or '')
|
||||||
|
Reference in New Issue
Block a user