From 920d2a2ea0db9b8ff173756a2a98e4054e183221 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 3 Jul 2016 22:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89socket=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E4=B8=8D=E7=94=A8=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/debug/Socket.php | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/library/think/debug/Socket.php b/library/think/debug/Socket.php index 9b114301..2f604ef9 100644 --- a/library/think/debug/Socket.php +++ b/library/think/debug/Socket.php @@ -22,24 +22,22 @@ class Socket public $port = 1116; //SocketLog 服务的http的端口号 protected $config = [ - 'enable' => true, //是否记录日志的开关 + // socket服务器地址 'host' => 'localhost', - //是否显示利于优化的参数,如果允许时间,消耗内存等 - 'optimize' => false, + // 是否显示加载的文件列表 'show_included_files' => false, - 'error_handler' => false, - //日志强制记录到配置的client_id + // 日志强制记录到配置的client_id 'force_client_ids' => [], - //限制允许读取日志的client_id + // 限制允许读取日志的client_id 'allow_client_ids' => [], ]; protected $css = [ - 'sql' => 'color:#009bb4;', - 'sql_warn' => 'color:#009bb4;font-size:14px;', - 'error_handler' => 'color:#f4006b;font-size:14px;', - 'page' => 'color:#40e2ff;background:#171717;', - 'big' => 'font-size:20px;color:red;', + 'sql' => 'color:#009bb4;', + 'sql_warn' => 'color:#009bb4;font-size:14px;', + 'error' => 'color:#f4006b;font-size:14px;', + 'page' => 'color:#40e2ff;background:#171717;', + 'big' => 'font-size:20px;color:red;', ]; protected $allowForceClientIds = []; //配置强制推送且被授权的client_id @@ -174,9 +172,6 @@ class Socket protected function check() { - if (!$this->config['enable']) { - return false; - } $tabid = $this->getClientArg('tabid'); //是否记录日志的检查 if (!$tabid && !$this->config['force_client_ids']) {