make it print out version numbers when it constructs a Node instance

This commit is contained in:
Zooko O'Whielacronx 2007-04-27 13:47:38 -07:00
parent 665b188af2
commit a70a599249

View File

@ -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.