On unknown error, log the last 256 bytes of rsync output
... else we're completely clueless about what actually happened.
This commit is contained in:
parent
cb9ceba2f8
commit
5001af381b
@ -186,7 +186,7 @@ class backup_rsync(backup_generic):
|
||||
self.logger.warning("[" + self.backup_name + "] unable so set uid on some files")
|
||||
elif (returncode != 0):
|
||||
self.logger.error("[" + self.backup_name + "] shell program exited with error code " + str(returncode))
|
||||
raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd)
|
||||
raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd, log[-256:])
|
||||
else:
|
||||
print cmd
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user