You've already forked pgbackrest
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:
+1
-1
@@ -581,7 +581,7 @@ sub file_copy
|
||||
# Execute the command through ssh
|
||||
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}");
|
||||
|
||||
|
||||
@@ -318,7 +318,8 @@ sub log
|
||||
}
|
||||
|
||||
$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})
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user