TerminalEventHandler.handle_event() now logs instead of raising

This commit is contained in:
Kristóf Tóth 2018-01-24 16:36:32 +01:00
parent eedf589ab7
commit fb597adf46

View File

@ -1,3 +1,4 @@
import logging
from shutil import rmtree, copytree
from xmlrpc.client import Fault as SupervisorFault
@ -19,7 +20,8 @@ class TerminadoEventHandler(EventHandlerBase, SupervisorMixin):
self.supervisor.startProcess(self.process_name)
def handle_event(self, anchor, data_json):
raise NotImplementedError # TODO: wat do?
logging.debug('TerminadoEventHandler received event for anchor {}'.format(anchor))
# TODO: wat do?
def handle_reset(self, data_json):
try: self.supervisor.stopProcess(self.process_name)