Actually, log the last 512 bytes.

This commit is contained in:
Jérémie Courrèges-Anglas 2015-05-15 11:59:44 +02:00
parent 5001af381b
commit 8711610053

View File

@ -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, log[-256:])
raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd, log[-512:])
else:
print cmd