receiver: make unpairing log messages be INFO, not warning
This commit is contained in:
parent
330fadfbce
commit
1400473877
|
@ -550,7 +550,8 @@ class Receiver(object):
|
|||
dev.wpid = None
|
||||
if key in self._devices:
|
||||
del self._devices[key]
|
||||
_log.warn('%s unpaired device %s', self, dev)
|
||||
if _log.isEnabledFor(_INFO):
|
||||
_log.info('%s unpaired device %s', self, dev)
|
||||
else:
|
||||
_log.error('%s failed to unpair device %s', self, dev)
|
||||
raise Exception('failed to unpair device %s: %s' % (dev.name, key))
|
||||
|
|
|
@ -164,7 +164,8 @@ class ReceiverListener(_listener.EventsListener):
|
|||
# Device was unpaired, and isn't valid anymore.
|
||||
# We replace it with a ghost so that the UI has something to work
|
||||
# with while cleaning up.
|
||||
_log.warn('device %s was unpaired, ghosting', device)
|
||||
if _log.isEnabledFor(_INFO):
|
||||
_log.info('device %s was unpaired, ghosting', device)
|
||||
device = _ghost(device)
|
||||
|
||||
self.status_changed_callback(device, alert, reason)
|
||||
|
|
Loading…
Reference in New Issue