Commit 3a18b15f by 王召彬

Merge branch 'fixbug-clslog' into test

parents 71e219e0 cd999713
# 2.0.13
- ClsLog延迟时判断协程模式
# 2.0.12 # 2.0.12
- 配合前端改版后端大调整 - 配合前端改版后端大调整
......
...@@ -63,6 +63,11 @@ class ClsLog ...@@ -63,6 +63,11 @@ class ClsLog
if($res->getResponse()->getStatusCode() == 200) { if($res->getResponse()->getStatusCode() == 200) {
return true; return true;
} }
if (App::isCoContext()) {
Coroutine::sleep(2);
} else {
sleep(2);
}
} }
$msg = '上传腾讯云日志服务失败:'.$res->getResult(); $msg = '上传腾讯云日志服务失败:'.$res->getResult();
self::writeClsErrors($msg); self::writeClsErrors($msg);
......
...@@ -38,7 +38,14 @@ class LogHandler extends AbstractProcessingHandler ...@@ -38,7 +38,14 @@ class LogHandler extends AbstractProcessingHandler
} }
$lines = array_column($records, 'formatted'); $lines = array_column($records, 'formatted');
$this->write($lines); foreach($lines as $k => $v) {
if(strpos($v, '验证器不存在') !== false) {
unset($lines[$k]);
}
}
if($lines) {
$this->write($lines);
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment