Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## New Features

* This release now supports the sdk up to rc2000.
* Less logs are now on `INFO` level, and more on `DEBUG` level, making the output less verbose.

## Bug Fixes

Expand Down
6 changes: 3 additions & 3 deletions src/frequenz/dispatch/_bg_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ async def _fetch(self) -> None:
self._dispatches = {}

try:
_logger.info("Fetching dispatches for microgrid %s", self._microgrid_id)
_logger.debug("Fetching dispatches for microgrid %s", self._microgrid_id)
async for page in self._client.list(microgrid_id=self._microgrid_id):
for client_dispatch in page:
dispatch = Dispatch(client_dispatch)
Expand All @@ -314,15 +314,15 @@ async def _fetch(self) -> None:
)
await self._lifecycle_events_tx.send(Updated(dispatch=dispatch))

_logger.info("Received %s dispatches", len(self._dispatches))
_logger.debug("Received %s dispatches", len(self._dispatches))

except grpc.aio.AioRpcError as error:
_logger.error("Error fetching dispatches: %s", error)
self._dispatches = old_dispatches
return

for dispatch in old_dispatches.values():
_logger.info("Deleted dispatch: %s", dispatch)
_logger.debug("Deleted dispatch: %s", dispatch)
await self._lifecycle_events_tx.send(Deleted(dispatch=dispatch))
await self._update_dispatch_schedule_and_notify(None, dispatch)

Expand Down
Loading