From 871161005319309b0afc201ea6978b2d9e2edfd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Fri, 15 May 2015 11:59:44 +0200 Subject: [PATCH] Actually, log the last 512 bytes. --- libtisbackup/backup_rsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtisbackup/backup_rsync.py b/libtisbackup/backup_rsync.py index 21ded8c..c53cf94 100644 --- a/libtisbackup/backup_rsync.py +++ b/libtisbackup/backup_rsync.py @@ -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