mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
改进sql日志记录
This commit is contained in:
@@ -793,7 +793,7 @@ abstract class Connection
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 未注册监听则记录到日志中
|
// 未注册监听则记录到日志中
|
||||||
Log::record('[ SQL ] ' . $this->queryStr . ' [ RunTime:' . $runtime . 's ]', 'sql');
|
Log::record('[ SQL ] ' . $sql . ' [ RunTime:' . $runtime . 's ]', 'sql');
|
||||||
if (!empty($explain)) {
|
if (!empty($explain)) {
|
||||||
Log::record('[ EXPLAIN : ' . var_export($explain, true) . ' ]', 'sql');
|
Log::record('[ EXPLAIN : ' . var_export($explain, true) . ' ]', 'sql');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user