]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: move a logging line closer to where the data is used
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 26 Sep 2023 17:25:31 +0000 (13:25 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 26 Sep 2023 17:31:26 +0000 (13:31 -0400)
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 <jmulligan@redhat.com>
src/cephadm/cephadm.py

index 30a824f2983a55a87bb115abdf65242a42aaa158..d3d00e6185155058bcca621ea9f9711df78e700b 100755 (executable)
@@ -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)