Reporting error when verbose flag is on

Bug #1546715 reported by Stefano Lenzi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopostgresqlbackup (Ubuntu)
New
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Stefano Lenzi (kismet-sl) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.