Skip to content

Commit 388eed8

Browse files
committed
Runtime: fix piped output rendering
1 parent f813b24 commit 388eed8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Command/Compile.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,12 @@ protected function commentOut(string $banner): array
297297
*/
298298
protected function print(string $message, int $level = Verbosity::ERROR, string $tag = ''): self
299299
{
300-
$otag = $tag ? "<$tag>" : '';
301-
$ctag = $tag ? "</$tag>" : '';
302-
$this->dmesg(sprintf('%s%s%s', $otag, $message, $ctag), $level);
300+
if ($level <= Verbosity::$level) {
301+
$otag = $tag ? "<$tag>" : '';
302+
$ctag = $tag ? "</$tag>" : '';!
303+
304+
$this->write(sprintf('%s%s%s', $otag, $message, $ctag));
305+
}
303306

304307
return $this;
305308
}

0 commit comments

Comments
 (0)