修正trace方法和trace驱动

This commit is contained in:
thinkphp
2016-01-10 11:30:31 +08:00
parent 09c6be5dd3
commit e2fe86e49f
3 changed files with 4 additions and 4 deletions

View File

@@ -271,7 +271,7 @@ function S($name, $value = '', $options = null)
*/
function trace($log = '[think]', $level = 'log')
{
if ('[think]' == $log) {
if ('[think]' === $log) {
return \think\Log::getLog();
} else {
\think\Log::record($log, $level);