From 60e722aae094f648566804bb1d247ddd97446669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuan-Ting=20Hsieh=20=28=E8=AC=9D=E6=B2=85=E5=BB=B7=29?= Date: Tue, 3 Sep 2024 18:14:38 -0700 Subject: [PATCH] Add log info for flower executor (#2900) * Add log info for flower executor * Fix format --- nvflare/app_opt/flower/executor.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nvflare/app_opt/flower/executor.py b/nvflare/app_opt/flower/executor.py index 88d8745b6f..dfefb9b6ae 100644 --- a/nvflare/app_opt/flower/executor.py +++ b/nvflare/app_opt/flower/executor.py @@ -68,6 +68,15 @@ def get_applet(self, fl_ctx: FLContext): def configure(self, config: dict, fl_ctx: FLContext): self.num_rounds = config.get(Constant.CONF_KEY_NUM_ROUNDS) + self._log_states(fl_ctx) def get_connector_config(self, fl_ctx: FLContext) -> dict: return {Constant.CONF_KEY_NUM_ROUNDS: self.num_rounds} + + def _log_states(self, fl_ctx: FLContext): + self.log_info(fl_ctx, "States are:") + self.log_info(fl_ctx, f" {self.int_server_grpc_options=}") + self.log_info(fl_ctx, f" {self.per_msg_timeout=}") + self.log_info(fl_ctx, f" {self.tx_timeout=}") + self.log_info(fl_ctx, f" {self.client_shutdown_timeout=}") + self.log_info(fl_ctx, f" {self.extra_env=}")