Noisy Bluetooth beacons notices should be logged on info level.

This commit is contained in:
Fabio Manganiello 2023-04-29 23:18:12 +02:00
parent 52f036dc1d
commit f764d1b4fb
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -156,14 +156,14 @@ class EventHandler:
new_entity = device_to_entity(device, data) new_entity = device_to_entity(device, data)
if self._exclude_known_noisy_beacons and self._is_noisy_beacon(new_entity): if self._exclude_known_noisy_beacons and self._is_noisy_beacon(new_entity):
logger.debug( logger.info(
'exclude_known_noisy_beacons is set to True: skipping beacon from device %s', 'exclude_known_noisy_beacons is set to True: skipping beacon from device %s',
device.address, device.address,
) )
return return
if self._blacklist.matches(new_entity): if self._blacklist.matches(new_entity):
logger.debug('Ignoring blacklisted device: %s', device.address) logger.info('Ignoring blacklisted device: %s', device.address)
return return
# Extend the new entity with children entities added by the plugins # Extend the new entity with children entities added by the plugins