修正 Hook类一处警告错误

This commit is contained in:
thinkphp
2016-02-17 15:04:58 +08:00
parent 95a32467a5
commit 1cf7279318

View File

@@ -101,7 +101,7 @@ class Hook
if (APP_DEBUG) {
Debug::remark('behavior_end', 'time');
Log::record('[ BEHAVIOR ] Run ' . $name . ' @' . $tag . ' [ RunTime:' . Debug::getRangeTime('behavior_start', 'behavior_end') . 's ]', 'log');
Log::record('[ BEHAVIOR ] Run ' . ($name instanceof \Closure ? 'Closure' : $name) . ' @' . $tag . ' [ RunTime:' . Debug::getRangeTime('behavior_start', 'behavior_end') . 's ]', 'info');
}
if (false === $result) {
// 如果返回false 则中断行为执行