From f4be76e18e01f7ccff1f6076e50d6f90e735acc2 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Sat, 1 Feb 2025 22:45:21 +0800 Subject: [PATCH] Refine debug message --- tapo_exporter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 tapo_exporter.py diff --git a/tapo_exporter.py b/tapo_exporter.py old mode 100644 new mode 100755 index 83664b1..e8f4e7c --- a/tapo_exporter.py +++ b/tapo_exporter.py @@ -36,7 +36,7 @@ class TplinkT315: await self.hubDev.update() except KasaException as e: self.hubDev = None - print(f"[TplinkT315::connect] Error: {e}") + print(f"[TplinkT315::connect] Hub Error: {e}") return False try: @@ -44,7 +44,7 @@ class TplinkT315: await self.t315Dev.update() except KasaException as e: self.t315Dev = None - print(f"[TplinkT315::connect] Error: {e}") + print(f"[TplinkT315::connect] Device Error: {e}") return False return True @@ -98,6 +98,7 @@ def getSecrets(fileanme): async def main(configs): secrect = getSecrets(configs.get("secret_filepath", DEFAULT_POLLING_INTERVAL)) if secrect is None: + print(f'Cannot read secret file({configs.get("secret_filepath", DEFAULT_POLLING_INTERVAL)})') return hubIp = secrect["ip"]