Skip to content

Commit dc83fab

Browse files
author
yuniszhang
committed
优化打印
1 parent 00c6125 commit dc83fab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qcloud_cos/cos_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def __init__(self, conf, retry=1, session=None):
250250
if session is None:
251251
self._session = CosS3Client.__built_in_sessions
252252
CosS3Client.__built_in_used = True
253-
logger.info("bound built-in connection pool success. maxsize=%d,%d" % (self._conf._pool_connections, self._conf._pool_maxsize))
253+
logger.info("bound built-in connection pool when new client. maxsize=%d,%d" % (self._conf._pool_connections, self._conf._pool_maxsize))
254254
else:
255255
self._session = session
256256

@@ -271,7 +271,7 @@ def set_built_in_connection_pool_max_size(self, PoolConnections, PoolMaxSize):
271271
# 重新绑定到内置连接池
272272
if CosS3Client.__built_in_used:
273273
self._session = CosS3Client.__built_in_sessions
274-
logger.info("rebound built-in connection pool success. maxsize=%d,%d" % (PoolConnections, PoolMaxSize))
274+
logger.info("bound built-in connection pool when new config. maxsize=%d,%d" % (PoolConnections, PoolMaxSize))
275275

276276
def generate_built_in_connection_pool(self, PoolConnections, PoolMaxSize):
277277
"""生成SDK内置的连接池,此连接池是client间共用的"""
@@ -300,7 +300,7 @@ def handle_built_in_connection_pool_by_pid(self):
300300
# 重新绑定到内置连接池
301301
if CosS3Client.__built_in_used:
302302
self._session = CosS3Client.__built_in_sessions
303-
logger.info("rebound built-in connection when new process. maxsize=%d,%d" % (self._conf._pool_connections, self._conf._pool_maxsize))
303+
logger.info("bound built-in connection pool when new processor. maxsize=%d,%d" % (self._conf._pool_connections, self._conf._pool_maxsize))
304304

305305
def get_conf(self):
306306
"""获取配置"""

0 commit comments

Comments
 (0)