From 815fed0cc9ba502f9450833008f7c9dd50b2e4da Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sat, 6 Jun 2015 14:03:53 +0200 Subject: [PATCH] finish log method --- lib/utils.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 773e45f..a15369e 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -91,10 +91,10 @@ class Utils { } else { $file = $CFG->root.'qtadmin.log'; } - file_put_contents($file, "[$time]: $message", FILE_APPEND | LOCK_EX); + file_put_contents($file, "[$time]: $message\n", FILE_APPEND | LOCK_EX); break; case 'stderr': - file_put_contents('php://stderr', "[$time]: $message"); + file_put_contents('php://stderr', "[$time]: $message\n"); break; case 'syslog': syslog($priority, $message); -- 2.39.2