1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-16 09:48:28 +02:00

No longer discarding stderr

This commit is contained in:
David Steele
2014-02-21 08:49:27 -05:00
parent 0387a8ee09
commit 6d975d2830
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ sub file_copy
# Execute the command through ssh # Execute the command through ssh
my $oSSH = $self->remote_get($strSourcePathType); my $oSSH = $self->remote_get($strSourcePathType);
unless ($oSSH->system({stdout_fh => $hFile, stderr_discard => true}, $strCommand)) unless ($oSSH->system({stdout_fh => $hFile}, $strCommand))
{ {
close($hFile) or confess &log(ERROR, "cannot close file ${strDestinationTmp}"); close($hFile) or confess &log(ERROR, "cannot close file ${strDestinationTmp}");
+2 -1
View File
@@ -318,7 +318,8 @@ sub log
} }
$strMessage = sprintf("%4d-%02d-%02d %02d:%02d:%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec) . $strMessage = sprintf("%4d-%02d-%02d %02d:%02d:%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec) .
(" " x (7 - length($strLevel))) . "${strLevel} " . threads->tid() . ": ${strMessage}\n"; (" " x (7 - length($strLevel))) . "${strLevel} " . (" " x (2 - length(threads->tid()))) .
threads->tid() . ": ${strMessage}\n";
if ($oLogLevelRank{"${strLevel}"}{rank} <= $oLogLevelRank{"${strLogLevelConsole}"}{rank}) if ($oLogLevelRank{"${strLevel}"}{rank} <= $oLogLevelRank{"${strLogLevelConsole}"}{rank})
{ {