Skip to content

Commit

Permalink
option to mute everything ran by a ray backend (#3435)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored May 19, 2024
1 parent 13bac6a commit 7c98529
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/py/flwr/server/superlink/fleet/vce/backend/raybackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def __init__(
runtime_env = (
self._configure_runtime_env(work_dir=work_dir) if work_dir else None
)
if backend_config.get("silent", False):

if backend_config.get("mute_logging", False):
init_ray(
logging_level=WARNING, log_to_driver=False, runtime_env=runtime_env
)
elif backend_config.get("silent", False):
init_ray(logging_level=WARNING, log_to_driver=True, runtime_env=runtime_env)
else:
init_ray(runtime_env=runtime_env)
Expand Down

0 comments on commit 7c98529

Please sign in to comment.