Loading src/Aspect/LogTraceAspect.php +1 −5 Original line number Diff line number Diff line Loading @@ -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 = [ Loading Loading @@ -64,8 +64,4 @@ class LogTraceAspect extends AbstractAspect } private function produceUniqueId() { return time().posix_getpid().Coroutine::id(); } } No newline at end of file Loading
src/Aspect/LogTraceAspect.php +1 −5 Original line number Diff line number Diff line Loading @@ -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 = [ Loading Loading @@ -64,8 +64,4 @@ class LogTraceAspect extends AbstractAspect } private function produceUniqueId() { return time().posix_getpid().Coroutine::id(); } } No newline at end of file