Skip to content

Commit

Permalink
device: Fix logger usage
Browse files Browse the repository at this point in the history
Logger uses a different name so adapt it.
  • Loading branch information
3v1n0 authored Nov 1, 2021
1 parent 004681d commit 44e0215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
TuyaDeviceListener,
TuyaDevice,
TuyaTokenInfo,
tuya_logger
TUYA_LOGGER
)

tuya_logger.setLevel(logging.DEBUG)
TUYA_LOGGER.setLevel(logging.DEBUG)
# Init
openapi = TuyaOpenAPI(ENDPOINT, ACCESS_ID, ACCESS_KEY, AuthType.CUSTOM)

Expand Down

0 comments on commit 44e0215

Please sign in to comment.