Skip to content

Commit 62204fa

Browse files
author
Marius Burkard
committed
Merge branch '6309-line-breaks-in-ispconfig-log' into 'develop'
Resolve "Line breaks in ispconfig.log" Closes #6309 See merge request ispconfig/ispconfig3!1586
2 parents c65925b + 1e57465 commit 62204fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/app.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function log($msg, $priority = 0, $dblog = true) {
266266
}
267267

268268
/** @var string Formatted message to be sent to the logging subsystems. */
269-
$log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt .' ' . $file_line_caller . '- '. $msg;
269+
$log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt . ' ' . $file_line_caller . '- '. $msg;
270270

271271
// Check if the user-set priority defines that this message should be output at all.
272272
if($priority >= $conf['log_priority']) {
@@ -278,7 +278,7 @@ function log($msg, $priority = 0, $dblog = true) {
278278
die('Unable to open logfile.');
279279
}
280280

281-
if(!fwrite($fp, $log_msg . '\r\n')) {
281+
if(!fwrite($fp, $log_msg . "\r\n")) {
282282
die('Unable to write to logfile.');
283283
}
284284

0 commit comments

Comments
 (0)