修复 socketlog 的bug

This commit is contained in:
upfy@qq.com
2015-12-08 15:30:48 +08:00
parent 31bf125994
commit ed8741629e
4 changed files with 8 additions and 6 deletions

View File

@@ -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: