由于trace无法记录异常,Socket trace调试仍然更改为日志驱动

This commit is contained in:
thinkphp
2016-07-04 21:13:30 +08:00
parent 81ff60592a
commit 596ffc8097

View File

@@ -9,9 +9,7 @@
// | Author: luofei614 <weibo.com/luofei614> // | Author: luofei614 <weibo.com/luofei614>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace think\debug; namespace think\log\driver;
use think\Response;
/** /**
* github: https://github.com/luofei614/SocketLog * github: https://github.com/luofei614/SocketLog
@@ -57,11 +55,10 @@ class Socket
/** /**
* 调试输出接口 * 调试输出接口
* @access public * @access public
* @param Response $response Response对象
* @param array $log 日志信息 * @param array $log 日志信息
* @return bool * @return bool
*/ */
public function output(Response $response, array $log = []) public function save(array $log = [])
{ {
if (!$this->check()) { if (!$this->check()) {
return false; return false;