From c53a43ed41b246fc63bc781324e6040397ca67d6 Mon Sep 17 00:00:00 2001 From: Aoyang Fang <53161583+Lincyaw@users.noreply.github.com> Date: Wed, 5 Jul 2023 09:48:08 +0800 Subject: [PATCH] fix: issue #277, logging is not defined (#280) --- nebula3/gclient/net/ConnectionPool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nebula3/gclient/net/ConnectionPool.py b/nebula3/gclient/net/ConnectionPool.py index 29d3a99c..5617f270 100644 --- a/nebula3/gclient/net/ConnectionPool.py +++ b/nebula3/gclient/net/ConnectionPool.py @@ -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 @@ -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))