Skip to content

Commit

Permalink
🎨 reduce noisy logs in director-v2 (#5300)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Neagu <[email protected]>
  • Loading branch information
GitHK and Andrei Neagu authored Feb 6, 2024
1 parent e211608 commit 2240f7b
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,31 @@ async def service_remove_containers(
scheduler_data.endpoint, progress_callback=progress_callback
)
except (BaseHttpClientError, TaskClientResultError) as e:
_logger.warning(
_logger.info(
(
"Could not remove service containers for "
"%s\n%s. Will continue to save the data from the service!"
"Could not remove service containers for %s. "
"Will continue to save the data from the service! Error: %s"
),
scheduler_data.service_name,
f"{e}",
f"{type(e)}: {e}",
)


async def service_free_reserved_disk_space(
app: FastAPI, node_id: NodeID, sidecars_client: SidecarsClient
) -> None:
scheduler_data: SchedulerData = _get_scheduler_data(app, node_id)
await sidecars_client.free_reserved_disk_space(scheduler_data.endpoint)
try:
await sidecars_client.free_reserved_disk_space(scheduler_data.endpoint)
except BaseHttpClientError as e:
_logger.info(
(
"Could not remove service containers for %s. "
"Will continue to save the data from the service! Error: %s"
),
scheduler_data.service_name,
f"{type(e)}: {e}",
)


async def service_save_state(
Expand Down

0 comments on commit 2240f7b

Please sign in to comment.