mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
framework/signal: log on connect/disconnect
Add debug level logging for connect() and disconnect() functions.
This commit is contained in:
parent
fc56de8842
commit
a2c113e0f9
@ -246,6 +246,7 @@ def connect(handler, signal, sender=dispatcher.Any, priority=0):
|
|||||||
for details.
|
for details.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
logger.debug('Connecting {} to {}({}) with priority {}'.format(handler, signal, sender, priority))
|
||||||
if getattr(signal, 'invert_priority', False):
|
if getattr(signal, 'invert_priority', False):
|
||||||
priority = -priority
|
priority = -priority
|
||||||
senderkey = id(sender)
|
senderkey = id(sender)
|
||||||
@ -275,6 +276,7 @@ def disconnect(handler, signal, sender=dispatcher.Any):
|
|||||||
sent by this sender.
|
sent by this sender.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
logger.debug('Disconnecting {} from {}({})'.format(handler, signal, sender))
|
||||||
dispatcher.disconnect(handler, signal, sender)
|
dispatcher.disconnect(handler, signal, sender)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user