receiver: make unpairing log messages be INFO, not warning

This commit is contained in:
Peter F. Patel-Schneider 2020-08-12 10:15:54 -04:00
parent 330fadfbce
commit 1400473877
2 changed files with 4 additions and 2 deletions

View File

@ -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))

View File

@ -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)