Public bug reported:

If the option --verbose is set in variable OPTS the autopostgresqlbackup
sends an email with "ERROR REPORTED" even if there is no error at all.
The reason is that the --verbose option of pg_dump sends the verbose
output to the STDERR.

I have attached an update version of the script which avoid to send
message if pg_dump report no error (by using the exit code instead of
the STDERR output)

Moreover the attached version uses a LOGDBG variable for storing debug
message of the autopostgresqlbackup script itself, when LOGDBG is empty
no log is debug message is saved.

** Affects: autopostgresqlbackup (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "updated script that fixes the bug and enable the logging 
of debug message"
   
https://bugs.launchpad.net/bugs/1546715/+attachment/4573855/+files/autopostgresqlbackup

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1546715

Title:
  Reporting error when verbose flag is on

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopostgresqlbackup/+bug/1546715/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to