Skip to content

Commit bf16dea

Browse files
committed
Write INFO logs for components transitioning to WORKING state
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent ea3c980 commit bf16dea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/frequenz/sdk/microgrid/_power_distributing/_component_status/_ev_charger_status_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def _handle_ev_data(self, ev_data: EVChargerData) -> ComponentStatusEnum:
115115

116116
if self._is_working(ev_data):
117117
if self._last_status == ComponentStatusEnum.NOT_WORKING:
118-
_logger.warning(
119-
"EV charger %s is in WORKING state.",
118+
_logger.info(
119+
"EV charger %s: state changed to WORKING.",
120120
self._component_id,
121121
)
122122
return ComponentStatusEnum.WORKING

src/frequenz/sdk/microgrid/_power_distributing/_component_status/_pv_inverter_status_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def _handle_pv_inverter_data(self, pv_data: InverterData) -> ComponentStatusEnum
125125

126126
if self._is_working(pv_data):
127127
if self._last_status == ComponentStatusEnum.NOT_WORKING:
128-
_logger.warning(
129-
"PV inverter %s is in WORKING state.",
128+
_logger.info(
129+
"PV inverter %s: state changed to WORKING.",
130130
self._component_id,
131131
)
132132
return ComponentStatusEnum.WORKING

0 commit comments

Comments
 (0)