mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修复 socketlog 的bug
This commit is contained in:
@@ -58,6 +58,7 @@ class App
|
||||
}
|
||||
//判断,如果启动SocketLog调试, 进行SocketLog配置
|
||||
if ($config['slog']['enable']) {
|
||||
define('SLOG_ENABLE',true);
|
||||
\org\Slog::config($config['slog']);
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,9 @@ class Error
|
||||
{
|
||||
// 记录日志
|
||||
Log::save();
|
||||
\org\Slog::sendLog();
|
||||
if(defined('SLOG_ENABLE') && SLOG_ENABLE) {
|
||||
\org\Slog::sendLog();
|
||||
}
|
||||
if ($e = error_get_last()) {
|
||||
switch ($e['type']) {
|
||||
case E_ERROR:
|
||||
|
||||
Reference in New Issue
Block a user