Skip to content

Commit

Permalink
fix: issue vesoft-inc#277, logging is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincyaw committed Jul 4, 2023
1 parent fda4738 commit fd6ac58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nebula3/gclient/net/ConnectionPool.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_connection(self):
try:
ok_num = self.get_ok_servers_num()
if ok_num == 0:
logging.error('No available server')
logger.error('No available server')
return None
max_con_per_address = int(
self._configs.max_connection_pool_size / ok_num
Expand Down Expand Up @@ -192,7 +192,7 @@ def get_connection(self):
self._connections[addr].remove(connection)
try_count = try_count + 1

logging.error('No available connection')
logger.error('No available connection')
return None
except Exception as ex:
logger.error('Get connection failed: {}'.format(ex))
Expand Down

0 comments on commit fd6ac58

Please sign in to comment.