mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmdbusd: Debug msg. improvements.
This commit is contained in:
parent
4dcb36aba4
commit
1bbf977577
@ -44,10 +44,10 @@ def process_request():
|
|||||||
try:
|
try:
|
||||||
req = cfg.worker_q.get(True, 5)
|
req = cfg.worker_q.get(True, 5)
|
||||||
log_debug(
|
log_debug(
|
||||||
"Running method: %s with args %s" %
|
"Method start: %s with args %s (callback = %s)" %
|
||||||
(str(req.method), str(req.arguments)))
|
(str(req.method), str(req.arguments), str(req.cb)))
|
||||||
req.run_cmd()
|
req.run_cmd()
|
||||||
log_debug("Method complete ")
|
log_debug("Method complete: %s" % str(req.method))
|
||||||
except queue.Empty:
|
except queue.Empty:
|
||||||
pass
|
pass
|
||||||
except Exception:
|
except Exception:
|
||||||
@ -159,8 +159,8 @@ def main():
|
|||||||
|
|
||||||
# Using a thread to process requests, we cannot hang the dbus library
|
# Using a thread to process requests, we cannot hang the dbus library
|
||||||
# thread that is handling the dbus interface
|
# thread that is handling the dbus interface
|
||||||
thread_list.append(threading.Thread(target=process_request,
|
thread_list.append(
|
||||||
name='process_request'))
|
threading.Thread(target=process_request, name='process_request'))
|
||||||
|
|
||||||
# Have a single thread handling updating lvm and the dbus model so we
|
# Have a single thread handling updating lvm and the dbus model so we
|
||||||
# don't have multiple threads doing this as the same time
|
# don't have multiple threads doing this as the same time
|
||||||
|
@ -107,10 +107,10 @@ class Manager(AutomatedProperties):
|
|||||||
rc = cfg.load(log=False)
|
rc = cfg.load(log=False)
|
||||||
|
|
||||||
if rc != 0:
|
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')
|
'bg_black', 'fg_light_red')
|
||||||
else:
|
else:
|
||||||
utils.log_debug('Manager.Refresh - exit %d' % (rc))
|
utils.log_debug('Manager.Refresh - exit %d %d' % (rc, lc))
|
||||||
return rc + lc
|
return rc + lc
|
||||||
|
|
||||||
@dbus.service.method(
|
@dbus.service.method(
|
||||||
|
Loading…
Reference in New Issue
Block a user