Skip to content

Commit

Permalink
Reduce log spam (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Mar 1, 2023
1 parent c22800c commit 28879e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py_dormakaba_dkey/dkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ async def disconnect(self) -> None:

def _fire_callbacks(self, notifications: Notifications) -> None:
"""Fire the callbacks."""
_LOGGER.warning("_fire_callbacks")
_LOGGER.debug("_fire_callbacks")
for callback in self._callbacks:
callback(notifications)

Expand Down Expand Up @@ -948,7 +948,7 @@ def on_lock_type_name(self, type_name: cmds.DetTypeNameCmd) -> None:
def on_notification(self, notifications: Notifications) -> None:
"""Handle status notifications from the lock."""
self.state.update(notifications)
_LOGGER.info("Lock state: %s", self.state)
_LOGGER.debug("Lock state: %s", self.state)
self._fire_callbacks(notifications)

def receive_notifications(
Expand Down

0 comments on commit 28879e5

Please sign in to comment.