Skip to content

Commit 1de07a6

Browse files
committed
Actually log the error that caused a source to be removed
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 8f383da commit 1de07a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/frequenz/sdk/microgrid/_resampling.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,11 @@ def _log_resampling_task_error(self, resampling_task: asyncio.Task[None]) -> Non
179179
resampling_task.result()
180180
except ResamplingError as error:
181181
for source, source_error in error.exceptions.items():
182-
_logger.error("Error resampling source %s, removing source...", source)
182+
_logger.error(
183+
"Error resampling source %s, removing source: %s",
184+
source,
185+
source_error,
186+
)
183187
removed = self._resampler.remove_timeseries(source)
184188
if not removed:
185189
_logger.error(

0 commit comments

Comments
 (0)