From: Brian Warner Date: Wed, 7 Nov 2007 21:14:54 +0000 (-0700) Subject: storage.py: add a little logging (disabled) X-Git-Tag: allmydata-tahoe-0.7.0~257 X-Git-Url: https://git.rkrishnan.org/htmlfontify-example.html?a=commitdiff_plain;h=ba43c033fad68c1ebd5441345c81d3810c8136fe;p=tahoe-lafs%2Ftahoe-lafs.git storage.py: add a little logging (disabled) --- diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py index 85dd5dc0..1e99fcef 100644 --- a/src/allmydata/storage.py +++ b/src/allmydata/storage.py @@ -656,6 +656,10 @@ class StorageServer(service.MultiService, Referenceable): self._active_writers = weakref.WeakKeyDictionary() self.measure_size() + def log(self, msg): + #self.parent.log(msg) + return + def setNodeID(self, nodeid): # somebody must set this before any slots can be created or leases # added @@ -880,12 +884,15 @@ class StorageServer(service.MultiService, Referenceable): (testv, datav, new_length) = test_and_write_vectors[sharenum] if sharenum in shares: if not shares[sharenum].check_testv(testv): + self.log("testv failed: [%d]: %r" % (sharenum, testv)) testv_is_good = False break else: # compare the vectors against an empty share, in which all # reads return empty strings. if not EmptyShare().check_testv(testv): + self.log("testv failed (empty): [%d] %r" % (sharenum, + testv)) testv_is_good = False break