修正日志记录写法

This commit is contained in:
thinkphp
2015-12-20 18:23:21 +08:00
parent bbeb2e0d51
commit e654fcae5c
3 changed files with 3 additions and 3 deletions

View File

@@ -441,7 +441,7 @@ class Lite
//$this->model = '_think_';
// 记录操作结束时间
Debug::remark('queryEndTime', 'time');
Log::record($this->queryStr . ' [ RunTime:' . Debug::getUseTime('queryStartTime', 'queryEndTime') . 's ]', 'SQL');
Log::record($this->queryStr . ' [ RunTime:' . Debug::getRangeTime('queryStartTime', 'queryEndTime') . 's ]', 'sql');
}
}
}