Add newline when writing logs to stdout

Add newline on the end of the line when printing to stdout.
pull/7418/head
Kent Varmedal 4 years ago committed by GitHub
parent af0e98759d
commit 3787d8216f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1272,7 +1272,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