Add newline when writing logs to stdout (#7418)

Add newline on the end of the line when printing to stdout.
pull/7342/merge
Kent Varmedal 4 years ago committed by GitHub
parent 278cf3c18e
commit b4dabff26c
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