From: John Mulligan Date: Tue, 26 Sep 2023 17:25:31 +0000 (-0400) Subject: cephadm: move a logging line closer to where the data is used X-Git-Tag: v19.0.0~387^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9e9f30b2752c8bdcd7d368473bd1c790f901b39;p=ceph.git cephadm: move a logging line closer to where the data is used Move a logging line closer to where the data being logging is used. This avoids having a dependency on logging in a fairly simple function and should make moving the function in a future commit easier. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 30a824f2983..d3d00e61851 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -5413,7 +5413,6 @@ def read_configuration_source(ctx: CephadmContext) -> Dict[str, Any]: else: with open(source, 'rb') as fh: config_data = json.load(fh) - logger.debug('Loaded deploy configuration: %r', config_data) return config_data @@ -5455,6 +5454,7 @@ def command_deploy_from(ctx: CephadmContext) -> None: configuration parameters from an input JSON configuration file. """ config_data = read_configuration_source(ctx) + logger.debug('Loaded deploy configuration: %r', config_data) apply_deploy_config_to_ctx(config_data, ctx) _common_deploy(ctx)