Add logging info when raising exception for failed rsync process

This commit is contained in:
Eric Torres 2019-03-17 18:37:45 -07:00
parent 59e31016a8
commit 29664c2797

View File

@ -31,6 +31,8 @@ def rsync(*args):
try:
process = subprocess.run(cmd, capture_output=True, check=True)
except subprocess.CalledProcessError as e:
syslog.error(e.stderr)
syslog.debug(e.stdout)
raise e
syslog.debug(process.stdout)