From f3a4a6a684142d03480987386c4de27c8fb44c15 Mon Sep 17 00:00:00 2001 From: glrs <5999366+glrs@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:37:44 +0100 Subject: [PATCH] Improved logging messages --- lib/module_utils/report_transfer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/module_utils/report_transfer.py b/lib/module_utils/report_transfer.py index 6f50dd7..fee6f93 100644 --- a/lib/module_utils/report_transfer.py +++ b/lib/module_utils/report_transfer.py @@ -41,7 +41,7 @@ def transfer_report( remote_path, ] - logging.debug(f"RSYNC command: {' '.join(rsync_command)}") + # logging.debug(f"RSYNC command: {' '.join(rsync_command)}") try: # Execute the rsync command @@ -52,7 +52,7 @@ def transfer_report( capture_output=True, ) - logging.info(f"Report transferred successfully to {remote_path}") + logging.info(f"Report transferred successfully to:\n> {server} : {remote_dir}") return True except subprocess.CalledProcessError as e: logging.error(f"Failed to transfer report:\n{e.stderr.strip()}")