Improved cmd debug logging

This commit is contained in:
Sebastian Goscik
2022-02-19 12:00:33 +00:00
parent e63c36d100
commit c481810c1e

View File

@@ -164,8 +164,10 @@ class UnifiProtectBackup:
if not rclone:
raise RuntimeError("`rclone` is not installed on this system")
cmd = "rclone listremotes"
logger.debug(f"rclone command: {cmd}")
proc = await asyncio.create_subprocess_shell(
"rclone listremotes",
cmd,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
)