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
my $a = getNumericVer($origPathAttribs{$path}->{'dbackup.version'});
my $b = getNumericVer($VERSION);
# 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
if ($VERSION =~ /\.x$/) {
printLog(LOG_WARNING,"S: Path '[$source]/($path)' ".
......@@ -864,7 +867,7 @@ sub backup
printLog(LOG_ERROR,"Failed to execute: $!\n");
exit 1;
} elsif ($? & 127) {
printLog(LOG_ERROR,"Child died with signal %s\n",($? & 127));
printLog(LOG_ERROR,"Child died with signal ".($? & 127)."\n");
exit 1;
} else {
my $retcode = $? >> 8;
......@@ -1185,7 +1188,7 @@ sub restore
printLog(LOG_ERROR,"Failed to execute: $!\n");
exit 1;
} elsif ($? & 127) {
printLog(LOG_ERROR,"Child died with signal %s\n",($? & 127));
printLog(LOG_ERROR,"Child died with signal ".($? & 127)."\n");
exit 1;
} else {
my $retcode = $? >> 8;
......
Markdown is supported
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