VOL-2311 Log task start and finish as info and warn
Helps when logging in INFO level, gives just enoug
context.
Also no longer log MDS updates or set-by-create updates
at info
Release 2.3.7
Change-Id: I22535c8b7a51c89778c6a9831139ddd802d95edc
diff --git a/VERSION b/VERSION
index c2417c3..00355e2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.3.7-dev
+2.3.7
diff --git a/pyvoltha/adapters/extensions/omci/state_machines/mib_sync.py b/pyvoltha/adapters/extensions/omci/state_machines/mib_sync.py
index 919f921..f7f22fd 100644
--- a/pyvoltha/adapters/extensions/omci/state_machines/mib_sync.py
+++ b/pyvoltha/adapters/extensions/omci/state_machines/mib_sync.py
@@ -234,7 +234,7 @@
if self._database is not None:
self._database.save_mib_data_sync(self._device_id,
self._mib_data_sync)
- self.log.info("mds-updated", device=self._device_id, mds=self._mib_data_sync)
+ self.log.debug("mds-updated", device=self._device_id, mds=self._mib_data_sync)
@property
def last_mib_db_sync(self):
@@ -782,7 +782,7 @@
if len(missing_attributes) and class_id in self._device.me_map:
from pyvoltha.adapters.extensions.omci.tasks.omci_get_request import OmciGetRequest
- self.log.info('update-sbc-items', class_id=class_id, entity_id=entity_id,
+ self.log.debug('update-sbc-items', class_id=class_id, entity_id=entity_id,
attributes=missing_attributes)
def success(results):
diff --git a/pyvoltha/adapters/extensions/omci/tasks/task_runner.py b/pyvoltha/adapters/extensions/omci/tasks/task_runner.py
index 6175d3f..ccd8264 100644
--- a/pyvoltha/adapters/extensions/omci/tasks/task_runner.py
+++ b/pyvoltha/adapters/extensions/omci/tasks/task_runner.py
@@ -151,7 +151,7 @@
if len(queue) == 0:
del self._pending_queue[highest_priority]
- self.log.debug('starting-task', task=str(next_task),
+ self.log.info('starting-task', task=str(next_task),
running=len(self._running_queue),
pending=len(self._pending_queue))
@@ -172,7 +172,7 @@
:param task: (Task) The task that succeeded
:return: deferred results
"""
- self.log.debug('task-success', task_id=str(task),
+ self.log.info('task-success', task_id=str(task),
running=len(self._running_queue),
pending=len(self._pending_queue))
try:
@@ -200,7 +200,7 @@
"""
from pyvoltha.adapters.extensions.omci.tasks.task import WatchdogTimeoutFailure
- self.log.debug('task-failure', task_id=str(task),
+ self.log.warn('task-failure', task_id=str(task),
running=len(self._running_queue),
pending=len(self._pending_queue))
try: