From: Ricardo Dias Date: Fri, 13 Apr 2018 10:08:55 +0000 (+0100) Subject: mgr/dashboard: viewcache: debug log messages X-Git-Tag: v13.1.0~234^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e368a15737dff0da52539cd21541baad2fd345e6;p=ceph.git mgr/dashboard: viewcache: debug log messages Signed-off-by: Ricardo Dias --- diff --git a/src/pybind/mgr/dashboard/tools.py b/src/pybind/mgr/dashboard/tools.py index 911251ae7a7f..6175140bd719 100644 --- a/src/pybind/mgr/dashboard/tools.py +++ b/src/pybind/mgr/dashboard/tools.py @@ -115,6 +115,7 @@ class ViewCache(object): def run(self): try: t0 = time.time() + logger.debug("VC: starting execution of %s", self.fn) val = self.fn(*self.args, **self.kwargs) t1 = time.time() except Exception as ex: @@ -132,6 +133,8 @@ class ViewCache(object): self._view.getter_thread = None self._view.exception = None + logger.debug("VC: execution of %s finished in: %s", self.fn, + t1 - t0) self.event.set() class RemoteViewCache(object): @@ -173,6 +176,8 @@ class ViewCache(object): self.getter_thread = ViewCache.GetterThread(self, fn, args, kwargs) self.getter_thread.start() + else: + logger.debug("VC: getter_thread still alive for: %s", fn) ev = self.getter_thread.event