Skip to content

Commit

Permalink
fix: issue #277, logging is not defined (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincyaw authored Jul 5, 2023
1 parent fda4738 commit c53a43e
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 c53a43e

Please sign in to comment.