Skip to content

Commit

Permalink
logging -> logger
Browse files Browse the repository at this point in the history
  • Loading branch information
yozik04 committed Apr 17, 2020
1 parent a59be8a commit 7adf6d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextion/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def on_startup(self):
await self.command("bkcmd=3") # Let's ensure we receive expected responses

async def on_wakeup(self):
logging.debug('Updating variables after wakeup: "%s"', str(self.sets_todo))
logger.debug('Updating variables after wakeup: "%s"', str(self.sets_todo))
for k, v in self.sets_todo.items():
self._loop.create_task(self.set(k, v))
self.sets_todo = {}
Expand Down Expand Up @@ -177,7 +177,7 @@ async def set(self, key, value, timeout=IO_TIMEOUT):
)

if self._sleeping and key not in ["sleep"]:
logging.debug(
logger.debug(
'Device sleeps. Scheduling "%s" set for execution after wakeup', key
)
self.sets_todo[key] = value
Expand Down

0 comments on commit 7adf6d8

Please sign in to comment.