From b28ceaf6d84265967fceef1cad84e8decd70a424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 5 Jan 2021 15:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/Connection.php | 3 +-- System/Pool/Redis.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 50bd9508..b4cee33a 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -238,8 +238,7 @@ class Connection extends Pool if (!empty($charset)) { $link->query('SET NAMES ' . $charset); } - $this->success('create db client has num ' . $this->size($coroutineName) . ', has create ' . $this->hasCreate[$coroutineName]); - $this->success('create db client -> ' . $cds . ':' . env('workerId', 0) . ':' . Coroutine::getCid()); + $this->success('create client[address: ' . $cds . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ', has create: ' . $this->hasCreate[$coroutineName]); $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 2a9edb65..45d37b52 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -85,8 +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 db client has num ' . $this->size($coroutineName) . ', has create ' . $this->_create); - $this->success('create redis client -> ' . $config['host'] . ':' . env('workerId', 0) . ':' . Coroutine::getCid()); + $this->success('create client[address: ' . $config['host'] . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ', has create: ' . $this->_create); if (!isset($config['read_timeout'])) { $config['read_timeout'] = 10; }