Commit fd79e4b3 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Some more logging fixes

Document version upgrades
parent 79cf32e2
...@@ -470,7 +470,10 @@ sub backup ...@@ -470,7 +470,10 @@ sub backup
my $a = getNumericVer($origPathAttribs{$path}->{'dbackup.version'}); my $a = getNumericVer($origPathAttribs{$path}->{'dbackup.version'});
my $b = getNumericVer($VERSION); my $b = getNumericVer($VERSION);
# Compare # Compare
if ($a < $b) { if (
$a < 16 # Things before 0.0.16 may have .dbackup-state issues and missing
# required info.
) {
# Check if end in .x # Check if end in .x
if ($VERSION =~ /\.x$/) { if ($VERSION =~ /\.x$/) {
printLog(LOG_WARNING,"S: Path '[$source]/($path)' ". printLog(LOG_WARNING,"S: Path '[$source]/($path)' ".
...@@ -864,7 +867,7 @@ sub backup ...@@ -864,7 +867,7 @@ sub backup
printLog(LOG_ERROR,"Failed to execute: $!\n"); printLog(LOG_ERROR,"Failed to execute: $!\n");
exit 1; exit 1;
} elsif ($? & 127) { } elsif ($? & 127) {
printLog(LOG_ERROR,"Child died with signal %s\n",($? & 127)); printLog(LOG_ERROR,"Child died with signal ".($? & 127)."\n");
exit 1; exit 1;
} else { } else {
my $retcode = $? >> 8; my $retcode = $? >> 8;
...@@ -1185,7 +1188,7 @@ sub restore ...@@ -1185,7 +1188,7 @@ sub restore
printLog(LOG_ERROR,"Failed to execute: $!\n"); printLog(LOG_ERROR,"Failed to execute: $!\n");
exit 1; exit 1;
} elsif ($? & 127) { } elsif ($? & 127) {
printLog(LOG_ERROR,"Child died with signal %s\n",($? & 127)); printLog(LOG_ERROR,"Child died with signal ".($? & 127)."\n");
exit 1; exit 1;
} else { } else {
my $retcode = $? >> 8; my $retcode = $? >> 8;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment