diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 9a831db3..d6b7116e 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -238,7 +238,7 @@ class Connection extends Pool if (!empty($charset)) { $link->query('SET NAMES ' . $charset); } - $this->success('create db client -> ' . $cds . ':' . env('workerId', 0)); + $this->success('create db client -> ' . $cds . ':' . env('workerId', 0) . ':' . Coroutine::getCid()); $this->incr($coroutineName); if ($number = Context::getContext('begin_' . $coroutineName, Coroutine::getCid())) { $number > 0 && $link->beginTransaction(); diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index 8c3a44d0..e8adf5d3 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -85,7 +85,7 @@ class Redis extends Pool if (empty($config['auth']) || !$redis->auth($config['auth'])) { throw new RedisConnectException(sprintf('Redis Error: %s, Host %s, Auth %s', $redis->getLastError(), $config['host'], $config['auth'])); } - $this->success('create redis client -> ' . $config['host'] . ':' . env('workerId', 0)); + $this->success('create redis client -> ' . $config['host'] . ':' . env('workerId', 0) . ':' . Coroutine::getCid()); if (!isset($config['read_timeout'])) { $config['read_timeout'] = 10; }