Commit a6c07699 authored by Liu lu's avatar Liu lu

批处理日志 数量改为36 防止占位符写入过多失败

parent 8b79eb5d
......@@ -31,7 +31,7 @@ class LogTraceAspect extends AbstractAspect
{
try {
$object = Context::get(ServerRequestInterface::class);
$fd = $object?$object->getSwooleRequest()->fd:$this->produceUniqueId();
$fd = $object?$object->getSwooleRequest()->fd:Coroutine::id();
Context::set('log_trace_request_id',$fd);
$originParams = [
......@@ -64,8 +64,4 @@ class LogTraceAspect extends AbstractAspect
}
private function produceUniqueId()
{
return time().posix_getpid().Coroutine::id();
}
}
\ No newline at end of file
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