Don't add err prefix to stderr

This commit is contained in:
Anton Medvedev 2020-12-18 20:02:18 +01:00
parent 1a2dfd24e7
commit 41c85d7aad
2 changed files with 2 additions and 17 deletions

View File

@ -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");
}
/**

View File

@ -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");
}
}