]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Report duplicity failure output at error loglevel so that it is emailed.
authorintrigeri <intrigeri@boum.org>
Sat, 25 Feb 2012 14:04:38 +0000 (15:04 +0100)
committerintrigeri <intrigeri@boum.org>
Sat, 25 Feb 2012 14:05:32 +0000 (15:05 +0100)
ChangeLog
handlers/dup.in

index 8a75d2f4e6aec316c1854d4a1735209eb3f004f5..c6fb6504957220fee5927bd4985409520b4bf6c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,8 @@ version 1.0 -- UNRELEASED
         . Adapt for new duplicity SSH backend.
           Support bandwidthlimit with new duplicity, using trickle.
           (Closes: #657201)
+        . Report failure output at error loglevel so that it is emailed
+          (Closes: #536858)
        mysql:
         . Don't attempt to dump performance_schema database (Redmine#3741).
        pgsql:
index f9f4de424f77fbc8f6a5a7ba065563b45d7e783b..9eb2fbb3037cef68cd1a944bb2dd9f5610610543 100644 (file)
@@ -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