From b4dabff26c7d3316081ec856fa51d92eaf282df4 Mon Sep 17 00:00:00 2001 From: Kent Varmedal Date: Sat, 13 Jun 2020 07:48:13 +0200 Subject: [PATCH] Add newline when writing logs to stdout (#7418) Add newline on the end of the line when printing to stdout. --- program/lib/Roundcube/rcube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index 55340a6c1..f7ec7caad 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -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; }