Add logging info when raising exception for failed rsync process
This commit is contained in:
parent
59e31016a8
commit
29664c2797
@ -31,6 +31,8 @@ def rsync(*args):
|
|||||||
try:
|
try:
|
||||||
process = subprocess.run(cmd, capture_output=True, check=True)
|
process = subprocess.run(cmd, capture_output=True, check=True)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
|
syslog.error(e.stderr)
|
||||||
|
syslog.debug(e.stdout)
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
syslog.debug(process.stdout)
|
syslog.debug(process.stdout)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user