Skip to content

Commit

Permalink
Merge pull request #16 from glrs/feature/report-transfer
Browse files Browse the repository at this point in the history
Improved logging messages
  • Loading branch information
glrs authored Nov 14, 2024
2 parents f645266 + f3a4a6a commit 303c40a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/module_utils/report_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()}")
Expand Down

0 comments on commit 303c40a

Please sign in to comment.