From b76535145dbdd0437476cb3722550534f757d566 Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Thu, 3 Mar 2022 19:39:39 -0800 Subject: [PATCH] remove calls to setlevel Signed-off-by: Yee Hing Tong --- flytekit/clis/sdk_in_container/pyflyte.py | 5 ----- flytekit/clis/sdk_in_container/serialize.py | 4 ---- 2 files changed, 9 deletions(-) diff --git a/flytekit/clis/sdk_in_container/pyflyte.py b/flytekit/clis/sdk_in_container/pyflyte.py index 56b8328701..374dcd76b9 100644 --- a/flytekit/clis/sdk_in_container/pyflyte.py +++ b/flytekit/clis/sdk_in_container/pyflyte.py @@ -58,11 +58,6 @@ def main(ctx, config=None, pkgs=None, insecure=None): """ update_configuration_file(config) - # Update the logger if it's set - log_level = _internal_config.LOGGING_LEVEL.get() or _sdk_config.LOGGING_LEVEL.get() - if log_level is not None: - cli_logger.getLogger().setLevel(log_level) - ctx.obj = dict() # Determine SSL. Note that the insecure option in this command is not a flag because we want to look diff --git a/flytekit/clis/sdk_in_container/serialize.py b/flytekit/clis/sdk_in_container/serialize.py index 4668b34b1d..2983a3f41a 100644 --- a/flytekit/clis/sdk_in_container/serialize.py +++ b/flytekit/clis/sdk_in_container/serialize.py @@ -295,8 +295,6 @@ def serialize(ctx, image, local_source_root, in_container_config_path, in_contai @click.option("-f", "--folder", type=click.Path(exists=True)) @click.pass_context def workflows(ctx, folder=None): - cli_logger.getLogger().setLevel(logging.DEBUG) - if folder: click.echo(f"Writing output to {folder}") @@ -323,8 +321,6 @@ def fast(ctx): @click.option("-f", "--folder", type=click.Path(exists=True)) @click.pass_context def fast_workflows(ctx, folder=None): - cli_logger.getLogger().setLevel(logging.DEBUG) - if folder: click.echo(f"Writing output to {folder}")