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)
|
log = monitor_stdout(process,'',self)
|
||||||
returncode = process.returncode
|
returncode = process.returncode
|
||||||
if (returncode != 0):
|
if (returncode != 0):
|
||||||
self.logger.error("[" + self.backup_name + "] shell program exited with error code: %s"%log)
|
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[-512:])
|
||||||
else:
|
else:
|
||||||
self.logger.info("[" + self.backup_name + "] snapshot directory created %s"%finaldest)
|
self.logger.info("[" + self.backup_name + "] snapshot directory created %s"%finaldest)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user