client.py: make a note in the logs when the auto-shutdown feature is in use

This commit is contained in:
Brian Warner
2007-08-14 02:12:30 -07:00
parent 179d5462c0
commit a0c16f1a36

View File

@ -65,6 +65,7 @@ class Client(node.Node, Referenceable):
hotline_file = os.path.join(self.basedir,
self.SUICIDE_PREVENTION_HOTLINE_FILE)
if os.path.exists(hotline_file):
self.log("hotline file noticed, starting timer")
hotline = TimerService(1.0, self._check_hotline, hotline_file)
hotline.setServiceParent(self)