浏览代码

modify log.php

root 9 年之前
父节点
当前提交
e342b95305
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      core/framework/libraries/log.php

+ 0 - 5
core/framework/libraries/log.php

@@ -18,11 +18,6 @@ class Log
             case self::SQL:
                 self::$log[] = "[{$now}] {$level}: {$message}\r\n";
 
-                $log_file = BASE_DATA_PATH . '/log/sql_' . date('Ymd', TIMESTAMP) . '.log';
-                $url = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : $_SERVER['PHP_SELF'];
-                $url .= " ( act={$_GET['act']}&op={$_GET['op']} ) ";
-                $content = "[{$now}] {$url}\r\n{$level}: {$message}\r\n";
-                file_put_contents($log_file, $content, FILE_APPEND);
                 $log_file = BASE_DATA_PATH.'/log/'.date('Ymd',TIMESTAMP).'.log';
                 $content = "[{$now}] {$level}: {$message}\r\n";
                 file_put_contents($log_file,$content, FILE_APPEND);