diff --git a/convention.php b/convention.php index fc4583a4..942c4166 100644 --- a/convention.php +++ b/convention.php @@ -110,7 +110,6 @@ return [ ], /* SocketLog 调试 */ 'slog' => [ - 'enable' => false, //是否记录日志的开关 'host' => 'localhost', //是否显示利于优化的参数,如果允许时间,消耗内存等 'optimize' => true, diff --git a/library/org/slog.php b/library/org/slog.php index 69283e84..d08b93ff 100644 --- a/library/org/slog.php +++ b/library/org/slog.php @@ -189,7 +189,7 @@ class Slog protected static function check() { - if (!self::$config['enable']) { + if (!SLOG_ON) { return false; } $tabid = self::getClientArg('tabid');