Skip to content
Snippets Groups Projects
Commit 62204fa9 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch '6309-line-breaks-in-ispconfig-log' into 'develop'

Resolve "Line breaks in ispconfig.log"

Closes #6309

See merge request !1586
parents c65925bd 1e57465c
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ class app {
}
/** @var string Formatted message to be sent to the logging subsystems. */
$log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt .' ' . $file_line_caller . '- '. $msg;
$log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt . ' ' . $file_line_caller . '- '. $msg;
// Check if the user-set priority defines that this message should be output at all.
if($priority >= $conf['log_priority']) {
......@@ -278,7 +278,7 @@ class app {
die('Unable to open logfile.');
}
if(!fwrite($fp, $log_msg . '\r\n')) {
if(!fwrite($fp, $log_msg . "\r\n")) {
die('Unable to write to logfile.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment