Skip to content

Commit 8408420

Browse files
committed
Change logging from warning to debug to reduce logging
1 parent 58de8c6 commit 8408420

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

plugwise_usb/nodes/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ async def _load_cache_file(self) -> bool:
379379
if self._loaded:
380380
return True
381381
if not self._cache_enabled:
382-
_LOGGER.warning(
382+
_LOGGER.debug(
383383
"Unable to load node %s from cache because caching is disabled",
384384
self.mac,
385385
)

plugwise_usb/nodes/scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ async def _switch_group(self, response: PlugwiseResponse) -> bool:
357357
raise MessageError(
358358
f"Invalid response message type ({response.__class__.__name__}) received, expected NodeSwitchGroupResponse"
359359
)
360-
_LOGGER.warning("%s received %s", self.name, response)
360+
_LOGGER.debug("%s received %s", self.name, response)
361361
await gather(
362362
self._available_update_state(True, response.timestamp),
363363
self._motion_state_update(response.switch_state, response.timestamp),
@@ -393,7 +393,7 @@ async def _motion_state_update(
393393
)
394394
await self._scan_configure_update()
395395
elif reset_timer < self._motion_config.reset_timer:
396-
_LOGGER.warning(
396+
_LOGGER.debug(
397397
"Adjust reset timer for %s from %s -> %s",
398398
self.name,
399399
self._motion_config.reset_timer,

plugwise_usb/nodes/sed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def _detect_maintenance_interval(self, timestamp: datetime) -> None:
477477
timestamp - self._last_awake[NodeAwakeResponseType.MAINTENANCE]
478478
).seconds
479479
new_interval_in_min = round(new_interval_in_sec // 60)
480-
_LOGGER.warning(
480+
_LOGGER.debug(
481481
"Detect current maintenance interval for %s: %s (seconds), current %s (min)",
482482
self.name,
483483
new_interval_in_sec,
@@ -528,7 +528,7 @@ async def _awake_timer(self) -> None:
528528
# Mark node as unavailable
529529
if self._available:
530530
last_awake = self._last_awake.get(NodeAwakeResponseType.MAINTENANCE)
531-
_LOGGER.warning(
531+
_LOGGER.debug(
532532
"No awake message received from %s | last_maintenance_awake=%s | interval=%s (%s) | Marking node as unavailable",
533533
self.name,
534534
last_awake,

plugwise_usb/nodes/sense.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ async def _switch_group(self, response: PlugwiseResponse) -> bool:
619619
raise MessageError(
620620
f"Invalid response message type ({response.__class__.__name__}) received, expected NodeSwitchGroupResponse"
621621
)
622-
_LOGGER.warning("%s received %s", self.name, response)
622+
_LOGGER.debug("%s received %s", self.name, response)
623623
await gather(
624624
self._available_update_state(True, response.timestamp),
625625
self._hysteresis_state_update(

0 commit comments

Comments
 (0)