mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 19:01:33 +00:00
TerminalEventHandler.handle_event() now logs instead of raising
This commit is contained in:
parent
eedf589ab7
commit
fb597adf46
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user