slog关闭控制用常量

This commit is contained in:
luofei614
2015-12-08 04:41:13 -05:00
parent 791f9dbd6d
commit 192dfa1b7c
2 changed files with 1 additions and 2 deletions

View File

@@ -110,7 +110,6 @@ return [
],
/* SocketLog 调试 */
'slog' => [
'enable' => false, //是否记录日志的开关
'host' => 'localhost',
//是否显示利于优化的参数,如果允许时间,消耗内存等
'optimize' => true,

View File

@@ -189,7 +189,7 @@ class Slog
protected static function check()
{
if (!self::$config['enable']) {
if (!SLOG_ON) {
return false;
}
$tabid = self::getClientArg('tabid');