Skip to content

Commit 5481cdd

Browse files
committed
Use the custom logger and not the default one from logging package
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 9972fce commit 5481cdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/frequenz/sdk/timeseries/logical_meter/_formula_generators/_battery_power_formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def generate(
4646
)
4747

4848
if not battery_inverters:
49-
logging.warning(
49+
logger.warning(
5050
"Unable to find any battery inverters in the component graph. "
5151
"Subscribing to the resampling actor with a non-existing "
5252
"component id, so that `0` values are sent from the formula."

src/frequenz/sdk/timeseries/logical_meter/_formula_generators/_pv_power_formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def generate(self) -> FormulaEngine:
3636
)
3737

3838
if not pv_inverters:
39-
logging.warning(
39+
logger.warning(
4040
"Unable to find any PV inverters in the component graph. "
4141
"Subscribing to the resampling actor with a non-existing "
4242
"component id, so that `0` values are sent from the formula."

0 commit comments

Comments
 (0)