mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Don't add err prefix to stderr
This commit is contained in:
parent
1a2dfd24e7
commit
41c85d7aad
@ -53,9 +53,6 @@ class Printer
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $type Process::OUT or Process::ERR
|
||||
*/
|
||||
public function writeln(string $type, Host $host, string $line): void
|
||||
{
|
||||
$line = self::filterOutput($line);
|
||||
@ -65,13 +62,7 @@ class Printer
|
||||
return;
|
||||
}
|
||||
|
||||
if ($type === Process::ERR) {
|
||||
$line = "[{$host->getTag()}] <fg=red>err</> $line";
|
||||
} else {
|
||||
$line = "[{$host->getTag()}] $line";
|
||||
}
|
||||
|
||||
$this->output->writeln($line);
|
||||
$this->output->writeln("[{$host->getTag()}] $line");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,12 +52,6 @@ class Logger
|
||||
return;
|
||||
}
|
||||
|
||||
if ($type === Process::ERR) {
|
||||
$line = "[{$host->getAlias()}] err $line";
|
||||
} else {
|
||||
$line = "[{$host->getAlias()}] $line";
|
||||
}
|
||||
|
||||
$this->log($line);
|
||||
$this->log("[{$host->getAlias()}] $line");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user