Remove ambigous API for log reading (actions always reply with logs included)

This commit is contained in:
Kristóf Tóth 2018-05-24 11:22:39 +02:00
parent bfd1efa9f9
commit 6489e4452e

View File

@ -15,9 +15,7 @@ class ProcessManager(SupervisorMixin):
def __init__(self):
self.commands = {'start': self.start_process,
'stop': self.stop_process,
'restart': self.restart_process,
'readlog': self.read_log_stdout,
'readerrlog': self.read_log_stderr}
'restart': self.restart_process}
def __call__(self, command, process_name):
return self.commands[command](process_name)