The intent was probably to log the returncode here too

This commit is contained in:
Jérémie Courrèges-Anglas 2015-05-15 11:47:40 +02:00
parent 0152852eb4
commit cb9ceba2f8

View File

@ -185,7 +185,7 @@ class backup_rsync(backup_generic):
elif (returncode == 23):
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 ")
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)
else:
print cmd