Also log error messages from btrfs.

Minor whitespace cleanup while here.
This commit is contained in:
Jérémie Courrèges-Anglas 2015-05-15 12:26:53 +02:00
parent e3e58d8963
commit 7e6983f77a

View File

@ -215,8 +215,8 @@ class backup_rsync_btrfs(backup_generic):
log = monitor_stdout(process,'',self)
returncode = process.returncode
if (returncode != 0):
self.logger.error("[" + self.backup_name + "] shell program exited with error code: %s"%log)
raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd)
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[-512:])
else:
self.logger.info("[" + self.backup_name + "] snapshot directory created %s"%finaldest)
else: