slog移动到核心think包 将来进一步改进

This commit is contained in:
thinkphp
2015-12-10 15:23:24 +08:00
parent 7b0fe7286d
commit 159d425cd0
6 changed files with 7 additions and 568 deletions

View File

@@ -1162,9 +1162,8 @@ abstract class Driver
}
}
$slog_config = Config::get('slog');
if ($slog_config['enable'] && $start) {
\org\Slog::sql($this->queryStr, $this->_linkID);
if (SLOG_ON && $start) {
\think\Slog::sql($this->queryStr, $this->_linkID);
}
}