Commit bcbf4b57 authored by Liu lu's avatar Liu lu

日志唯一id区分

parent 9c219723
...@@ -31,7 +31,7 @@ class LogTraceAspect extends AbstractAspect ...@@ -31,7 +31,7 @@ class LogTraceAspect extends AbstractAspect
{ {
try { try {
$object = Context::get(ServerRequestInterface::class); $object = Context::get(ServerRequestInterface::class);
$fd = $object?$object->getSwooleRequest()->fd:Coroutine::id(); $fd = $object?('fd'.$object->getSwooleRequest()->fd):('co'.Coroutine::id());
Context::set('log_trace_request_id',$fd); Context::set('log_trace_request_id',$fd);
$originParams = [ $originParams = [
......
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