Skip to content

Commit

Permalink
fix(StreamDumper): don't remove commas
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Neundorfer committed Apr 19, 2022
1 parent a87456f commit 5464f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Module/StreamDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected static function resolveStreamPath(): string
*/
protected static function buildLogLine(array $args): string
{
return preg_replace('/\s*[\\n,\\r]\s*/', ' [NL] ',
return preg_replace('/\\s*[\\n\\r]\\s*/', ' [NL] ',
static::getTimestamp() .
' ' . static::stringifyArgs($args) .
' | ' . static::getCallee($args) .
Expand All @@ -124,7 +124,7 @@ protected static function stringifyArgs(array $args): string
continue;
}

$argString = @json_encode($arg);
$argString = preg_replace('/\\s*[\\n\\r]\\s*/', '', @json_encode($arg));
$type = gettype($arg);
if (is_object($arg)) {
$out[] = '(' . $type . ': ' . get_class($arg) . ') ' . $argString;
Expand Down

0 comments on commit 5464f52

Please sign in to comment.