From c0fb28c46c1190147c54a8735197b79f985fcb36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 1 Jun 2018 15:15:07 +0200 Subject: [PATCH] Stop LogMonitor on EventHandler.cleanup() in LogMonitoringEH --- lib/tfw/components/log_monitoring_event_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tfw/components/log_monitoring_event_handler.py b/lib/tfw/components/log_monitoring_event_handler.py index 078e2e8..10058ce 100644 --- a/lib/tfw/components/log_monitoring_event_handler.py +++ b/lib/tfw/components/log_monitoring_event_handler.py @@ -54,3 +54,6 @@ class LogMonitoringEventHandler(EventHandlerBase, MonitorManagerMixin): |-value: new tail length """ self.set_monitor_args(self.process_name, data['value']) + + def cleanup(self): + self.monitor.stop()