1
0
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:
Sergei Trofimov 2018-01-25 08:38:59 +00:00 committed by Marc Bonnici
parent fc56de8842
commit a2c113e0f9

View File

@ -246,6 +246,7 @@ def connect(handler, signal, sender=dispatcher.Any, priority=0):
for details.
"""
logger.debug('Connecting {} to {}({}) with priority {}'.format(handler, signal, sender, priority))
if getattr(signal, 'invert_priority', False):
priority = -priority
senderkey = id(sender)
@ -275,6 +276,7 @@ def disconnect(handler, signal, sender=dispatcher.Any):
sent by this sender.
"""
logger.debug('Disconnecting {} from {}({})'.format(handler, signal, sender))
dispatcher.disconnect(handler, signal, sender)