Also log error messages from btrfs.
Minor whitespace cleanup while here.
This commit is contained in:
parent
e3e58d8963
commit
7e6983f77a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user