From: Zooko O'Whielacronx Date: Fri, 27 Apr 2007 20:47:38 +0000 (-0700) Subject: make it print out version numbers when it constructs a Node instance X-Git-Tag: allmydata-tahoe_v0.1.1-1-UNSTABLE~5 X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=a70a59924917a796302c11dfc7429c98eef6da91;p=tahoe-lafs%2Ftahoe-lafs.git make it print out version numbers when it constructs a Node instance --- diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 2554e197..fa41a5c3 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -6,6 +6,11 @@ from twisted.internet import defer from foolscap import Tub from allmydata.util import idlib, observer, iputil +# Just to get their versions: +import allmydata +import zfec +import foolscap + class Node(service.MultiService): # this implements common functionality of both Client nodes and the Queen # node. @@ -58,6 +63,8 @@ class Node(service.MultiService): m.setServiceParent(self) self.log("AuthorizedKeysManhole listening on %d" % portnum) + self.log("Node constructed. tahoe version: %s, foolscap version: %s, zfec version: %s" % (allmydata.__version__, foolscap.__version__, zfec.__version__,)) + def startService(self): """Start the node. Returns a Deferred that fires (with self) when it is ready to go.