diff options
author | Alex Shatov <alexs@att.com> | 2018-03-22 15:52:14 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2018-03-22 15:52:14 -0400 |
commit | 535e0dc1340ce57c0bfeed8d1ce530111cf41063 (patch) | |
tree | 9bc0aca6ff5f46bb09841210a4b7725ca0ea7f76 /policyhandler/policy_updater.py | |
parent | 14411ac0ec0df8a32ab5d360c5a7fdb87ca51e26 (diff) |
2.4.1 better step-timer + audit + unit-tests
- improved step-timer due to unit tests
-- fixed events
-- better logging
- audit - collect list of package thru subprocess pip freeze
- unit tests coverage 76%
Change-Id: Ib1cb5f687612ecf18aa7414b1ff7dbf5774345b4
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-389
Diffstat (limited to 'policyhandler/policy_updater.py')
-rw-r--r-- | policyhandler/policy_updater.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/policyhandler/policy_updater.py b/policyhandler/policy_updater.py index 2c2f729..0b9e227 100644 --- a/policyhandler/policy_updater.py +++ b/policyhandler/policy_updater.py @@ -139,19 +139,20 @@ class PolicyUpdater(Thread): "catch_up_timer", self._catch_up_interval, PolicyUpdater.catch_up, + PolicyUpdater._logger, self ) self._catch_up_timer.start() self._logger.info("started catch_up_timer in %s", self._catch_up_interval) def _pause_catch_up_timer(self): - """stop catch_up_timer""" + """pause catch_up_timer""" if self._catch_up_timer: self._logger.info("pause catch_up_timer") self._catch_up_timer.pause() def _stop_catch_up_timer(self): - """stop catch_up_timer""" + """stop and destroy the catch_up_timer""" if self._catch_up_timer: self._logger.info("stopping catch_up_timer") self._catch_up_timer.stop() |