Skip to content

Commit 41c85d7

Browse files
committed
Don't add err prefix to stderr
1 parent 1a2dfd2 commit 41c85d7

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

src/Component/ProcessRunner/Printer.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ public function printBuffer(string $type, Host $host, string $buffer): void
5353
}
5454
}
5555

56-
/**
57-
* @param string $type Process::OUT or Process::ERR
58-
*/
5956
public function writeln(string $type, Host $host, string $line): void
6057
{
6158
$line = self::filterOutput($line);
@@ -65,13 +62,7 @@ public function writeln(string $type, Host $host, string $line): void
6562
return;
6663
}
6764

68-
if ($type === Process::ERR) {
69-
$line = "[{$host->getTag()}] <fg=red>err</> $line";
70-
} else {
71-
$line = "[{$host->getTag()}] $line";
72-
}
73-
74-
$this->output->writeln($line);
65+
$this->output->writeln("[{$host->getTag()}] $line");
7566
}
7667

7768
/**

src/Logger/Logger.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ public function writeln(Host $host, string $type, string $line): void
5252
return;
5353
}
5454

55-
if ($type === Process::ERR) {
56-
$line = "[{$host->getAlias()}] err $line";
57-
} else {
58-
$line = "[{$host->getAlias()}] $line";
59-
}
60-
61-
$this->log($line);
55+
$this->log("[{$host->getAlias()}] $line");
6256
}
6357
}

0 commit comments

Comments
 (0)