Skip to content

Commit 91080f3

Browse files
Add extra log about stop of fallback metric fetcher
Signed-off-by: Elzbieta Kotulska <[email protected]>
1 parent c9ebc4f commit 91080f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/frequenz/sdk/timeseries/formula_engine/_formula_steps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,11 @@ async def _fetch_next(self) -> Sample[QuantityT] | None:
541541
if is_primary_value_valid:
542542
# Primary stream is good again, so we can stop fallback and return primary_value.
543543
if self._fallback.is_running:
544+
_logger.info(
545+
"Primary metric %s is good again, stopping fallback metric fetcher %s",
546+
self._name,
547+
self._fallback.name,
548+
)
544549
await self._fallback.stop()
545550
return primary_value
546551

0 commit comments

Comments
 (0)