#18919254 - sloq_query 시간이 잘못 기록되는 문제 수정 및 query_id 출력 포함

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7498 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2010-06-06 03:26:38 +00:00
parent 3be90e68da
commit 1becfa3ca4

View file

@ -198,12 +198,13 @@
if(!file_exists($log_file)) {
$buff = '<?php exit();?>'."\n";
}
$buff .= sprintf("%s\t%s\n\t%0.6f sec\n\n", date("Y-m-h H:i"), $this->query, $elapsed_time);
$buff .= sprintf("%s\t%s\n\t%0.6f sec\tquery_id:%s\n\n", date("Y-m-d H:i"), $this->query, $elapsed_time, $this->query_id);
if($fp = fopen($log_file, 'a')) {
fwrite($fp, $buff);
fclose($fp);
}
}
}