Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SYangster committed Jan 15, 2025
1 parent c685e95 commit 6fef2c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nvflare/private/fed/app/simulator/simulator_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def setup(self):

if self.args.log_config:
log_config_file_path = self.args.log_config
if not os.path.isfile(log_config_file_path):
self.logger.error(f"log_config: {log_config_file_path} is not a valid file path")
return False
else:
log_config_file_path = os.path.join(self.args.workspace, "local", WorkspaceConstants.LOGGING_CONFIG)
if not os.path.isfile(log_config_file_path):
Expand Down Expand Up @@ -691,6 +694,8 @@ def do_one_task(self, client, num_of_threads, gpu, lock, timeout=60.0, task_name
client_workspace = os.path.join(self.args.workspace, client.client_name)
if self.args.log_config:
logging_config = self.args.log_config
if not os.path.isfile(logging_config):
raise ValueError(f"log_config: {logging_config} is not a valid file path")
else:
logging_config = os.path.join(
self.args.workspace, client.client_name, "local", WorkspaceConstants.LOGGING_CONFIG
Expand Down
2 changes: 1 addition & 1 deletion nvflare/private/fed/server/job_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_spec(self):
),
CommandSpec(
name=AdminCommandNames.CONFIGURE_JOB_LOG,
description="configure logging of a job",
description="configure logging of a running job",
usage=f"{AdminCommandNames.CONFIGURE_JOB_LOG} job_id server|client <client-name>... config",
handler_func=self.configure_job_log,
authz_func=self.authorize_configure_job_log,
Expand Down

0 comments on commit 6fef2c7

Please sign in to comment.