Add newline when writing logs to stdout (#7418)

Add newline on the end of the line when printing to stdout.
release-1.4
Kent Varmedal 4 years ago committed by Aleksander Machniak
parent e8e7389e98
commit e66a981700

@ -1266,7 +1266,7 @@ class rcube
// write message with file name when configured to log to STDOUT
if ($log_driver == 'stdout') {
$stdout = "php://stdout";
$line = "$name: $line";
$line = "$name: $line\n";
return file_put_contents($stdout, $line, FILE_APPEND) !== false;
}

Loading…
Cancel
Save