From fb597adf46e499e796f2c8190bd52ef3217619d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 24 Jan 2018 16:36:32 +0100 Subject: [PATCH] TerminalEventHandler.handle_event() now logs instead of raising --- src/event_handlers/terminado_event_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/event_handlers/terminado_event_handler.py b/src/event_handlers/terminado_event_handler.py index 4c69809..00ffbae 100644 --- a/src/event_handlers/terminado_event_handler.py +++ b/src/event_handlers/terminado_event_handler.py @@ -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)