Skip to content

Commit 09556b6

Browse files
authored
Added newline to json stream output
Log messages with the json stream did not contain a new line after every log message.
1 parent 46b5936 commit 09556b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/code/community/FireGento/Logger/Model/JsonStream.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function _write($event)
7676
$eventData = array_filter($eventData, function ($var) { return $var !== null; });
7777
$line = @json_encode($eventData);
7878

79-
if (false === @fwrite($this->_stream, $line)) {
79+
if (false === @fwrite($this->_stream, $line . PHP_EOL)) {
8080
//require_once 'Zend/Log/Exception.php';
8181
throw new Zend_Log_Exception("Unable to write to stream");
8282
}

0 commit comments

Comments
 (0)