notifications: downgrade unknown notifications warnings to info messages

This commit is contained in:
Peter F. Patel-Schneider 2021-07-15 10:29:52 -04:00
parent ed0b730e74
commit d898edc4a3
1 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,6 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import INFO as _INFO from logging import INFO as _INFO
from logging import WARNING as _WARNING
from logging import getLogger from logging import getLogger
from . import diversion as _diversion from . import diversion as _diversion
@ -367,8 +366,8 @@ def _process_feature_notification(device, status, n, feature):
elif n.address == 0x20: elif n.address == 0x20:
if _log.isEnabledFor(_DEBUG): if _log.isEnabledFor(_DEBUG):
_log.debug('%s: received analyticsKeyEvents', device) _log.debug('%s: received analyticsKeyEvents', device)
elif _log.isEnabledFor(_WARNING): elif _log.isEnabledFor(_INFO):
_log.warn('%s: unknown REPROG_CONTROLS_V4 %s', device, n) _log.info('%s: unknown REPROG_CONTROLS_V4 %s', device, n)
elif feature == _F.HIRES_WHEEL: elif feature == _F.HIRES_WHEEL:
if (n.address == 0x00): if (n.address == 0x00):
@ -383,7 +382,8 @@ def _process_feature_notification(device, status, n, feature):
ratchet = flags & 0x01 ratchet = flags & 0x01
_log.info('%s: WHEEL: ratchet: %d', device, ratchet) _log.info('%s: WHEEL: ratchet: %d', device, ratchet)
else: else:
_log.warn('%s: unknown WHEEL %s', device, n) if _log.isEnabledFor(_INFO):
_log.info('%s: unknown WHEEL %s', device, n)
_diversion.process_notification(device, status, n, feature) _diversion.process_notification(device, status, n, feature)