Refactor supervisor logging logic to separate mixin

This commit is contained in:
Kristóf Tóth
2018-05-28 14:32:11 +02:00
parent fd56f8ca63
commit 44df95a434
3 changed files with 12 additions and 8 deletions

View File

@ -4,14 +4,14 @@
from xmlrpc.client import Fault as SupervisorFault
from tfw import EventHandlerBase
from tfw.mixins import SupervisorMixin
from tfw.mixins import SupervisorMixin, SupervisorLogMixin
from tfw.config.logs import logging
from .directory_monitor import with_monitor_paused
LOG = logging.getLogger(__name__)
class ProcessManager(SupervisorMixin):
class ProcessManager(SupervisorMixin, SupervisorLogMixin):
def __init__(self):
self.commands = {'start': self.start_process,
'stop': self.stop_process,