]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
finish log method
[qtadmin.git] / lib / utils.inc.php
index 773e45fceee4d66dc6335f891cfe516fb7ca13d9..db02a8d317c81dd2439040ec3229d179f46591ca 100644 (file)
@@ -91,10 +91,11 @@ class Utils {
                 } else {
                     $file = $CFG->root.'qtadmin.log';
                 }
                 } 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);
+                chmod($file, 0600);
                 break;
             case 'stderr':
                 break;
             case 'stderr':
-                file_put_contents('php://stderr', "[$time]: $message");
+                file_put_contents('php://stderr', "[$time]: $message\n");
                 break;
             case 'syslog':
                 syslog($priority, $message);
                 break;
             case 'syslog':
                 syslog($priority, $message);
This page took 0.041286 seconds and 5 git commands to generate.