aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-02-25 15:04:38 +0100
committerintrigeri <intrigeri@boum.org>2012-02-25 15:05:32 +0100
commit3a94e3bc59e5592da73144668396ec8e3463e1fd (patch)
tree2a2496b7911598ef4d27073e3eef896ce308b90f /handlers
parent3ac357dd957c88b22575bdde9d65ae29fe073250 (diff)
downloadbackupninja-3a94e3bc59e5592da73144668396ec8e3463e1fd.tar.gz
backupninja-3a94e3bc59e5592da73144668396ec8e3463e1fd.tar.bz2
Report duplicity failure output at error loglevel so that it is emailed.
Diffstat (limited to 'handlers')
-rw-r--r--handlers/dup.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/handlers/dup.in b/handlers/dup.in
index f9f4de4..9eb2fbb 100644
--- a/handlers/dup.in
+++ b/handlers/dup.in
@@ -339,7 +339,11 @@ if [ ! $test ]; then
exit_code=$?
debug $output
cat $outputfile | (while read output ; do
- info $output
+ if [ $exit_code -eq 0 ]; then
+ info $output
+ else
+ error $output
+ fi
done
)
if [ $exit_code -eq 0 ]; then