Permalink
Browse files

modify log style

  • Loading branch information...
1 parent 0c63fda commit 2168d6dce749980848f7db5af74d4a294e79710d @ronalfei committed Jan 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/core/dbdebug.class.php
@@ -18,7 +18,7 @@ public function setQuery($host,$port,$database,$time,$sql)
if(file_exists ( _SQL_PATH)){
$filename = _SQL_PATH.'sql.'.date('Ymd').'.log';
$now = date('H:i:s');
- $data = "[{$now}] ".trim($sql)."; [{$time}]\r\n";
+ $data = "[{$now} {$time}]\t".trim($sql)."; \r\n";
//判断是否可写
if( file_exists($filename) && !is_writable($filename) ){//文件存在且不可写
file_put_contents($filename.'.tmp',$data,FILE_APPEND);

0 comments on commit 2168d6d

Please sign in to comment.