Skip to content

Commit

Permalink
Merge pull request #47 from bstuff/master
Browse files Browse the repository at this point in the history
Fix line breaks in logger
  • Loading branch information
Mikhail Bakulin committed Jul 8, 2019
2 parents 3aaa0f7 + 8ece11a commit 8bd72d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ public function logError(\Throwable $e, AMQPMessage $msg)
public function printInfo($message, $color = Console::FG_YELLOW)
{
if (Console::streamSupportsAnsiColors(\STDOUT)) {
$message = Console::ansiFormat($message, [$color]) . "\n";
$message = Console::ansiFormat($message, [$color]);
}

return Console::stdout($message);
return Console::output($message);
}

/**
Expand Down

0 comments on commit 8bd72d8

Please sign in to comment.