소스 검색

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);