]> sourceware.org Git - lvm2.git/commitdiff
lvmdbusd: Debug msg. improvements.
authorTony Asleson <tasleson@redhat.com>
Fri, 11 Oct 2019 15:46:22 +0000 (10:46 -0500)
committerTony Asleson <tasleson@redhat.com>
Wed, 30 Oct 2019 15:38:40 +0000 (10:38 -0500)
daemons/lvmdbusd/main.py
daemons/lvmdbusd/manager.py

index 99881431a79d43ee3b211a036a9c7f7a37679973..b0a82d49276a50d2d8386fe8bc34a5aa222ca7e6 100644 (file)
@@ -44,10 +44,10 @@ def process_request():
                try:
                        req = cfg.worker_q.get(True, 5)
                        log_debug(
-                               "Running method: %s with args %s" %
-                               (str(req.method), str(req.arguments)))
+                               "Method start: %s with args %s (callback = %s)" %
+                               (str(req.method), str(req.arguments), str(req.cb)))
                        req.run_cmd()
-                       log_debug("Method complete ")
+                       log_debug("Method complete: %s" % str(req.method))
                except queue.Empty:
                        pass
                except Exception:
@@ -159,8 +159,8 @@ def main():
 
        # Using a thread to process requests, we cannot hang the dbus library
        # thread that is handling the dbus interface
-       thread_list.append(threading.Thread(target=process_request,
-                                                                               name='process_request'))
+       thread_list.append(
+               threading.Thread(target=process_request, name='process_request'))
 
        # Have a single thread handling updating lvm and the dbus model so we
        # don't have multiple threads doing this as the same time
index 8de05db02d870c85d3470b4b8ba34dc06e700f0f..2857e9a10d4867e469630ffbe01959288eb00f34 100644 (file)
@@ -107,10 +107,10 @@ class Manager(AutomatedProperties):
                rc = cfg.load(log=False)
 
                if rc != 0:
-                       utils.log_debug('Manager.Refresh - exit %d' % (rc),
+                       utils.log_debug('Manager.Refresh - exit %d %d' % (rc, lc),
                                                        'bg_black', 'fg_light_red')
                else:
-                       utils.log_debug('Manager.Refresh - exit %d' % (rc))
+                       utils.log_debug('Manager.Refresh - exit %d %d' % (rc, lc))
                return rc + lc
 
        @dbus.service.method(
This page took 0.039106 seconds and 5 git commands to generate.