summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-05-11 12:22:14 -0700
committerBrion Vibber <brion@pobox.com>2010-05-11 12:22:14 -0700
commit3d00cfd47fe5458a531df1b78b1833eb17321393 (patch)
tree0a8bdfb7da594ad1a23f778379e989f9f6e33119 /lib/util.php
parent45392bef3382cd0bad30ebcd343d1cdd21e16f08 (diff)
Windows server fix: Use platform EOL in debug log file
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index c0013bb3d..efede1d4b 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1365,7 +1365,7 @@ function common_log_line($priority, $msg)
{
static $syslog_priorities = array('LOG_EMERG', 'LOG_ALERT', 'LOG_CRIT', 'LOG_ERR',
'LOG_WARNING', 'LOG_NOTICE', 'LOG_INFO', 'LOG_DEBUG');
- return date('Y-m-d H:i:s') . ' ' . $syslog_priorities[$priority] . ': ' . $msg . "\n";
+ return date('Y-m-d H:i:s') . ' ' . $syslog_priorities[$priority] . ': ' . $msg . PHP_EOL;
}
function common_request_id()