소스 검색

Try handling unclosed sql connections by calling dispose on the engine before it is put back into the pool.

ogert 5 년 전
부모
커밋
12ce1deafe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cdplib/db_handlers/SQLHandler.py

+ 1 - 1
cdplib/db_handlers/SQLHandler.py

@@ -26,7 +26,7 @@ class SQLHandlerPool(metaclass=SingletonThreadsafe):
     def __init__(self, size: int = 20):
         self._size = size
         self._log = Log(name='SQLHandlerPool')
-        self._log('############################# CREATED NEW POOL ###################################')
+        self._log.info('############################# CREATED NEW POOL ###################################')
         self._sql_handlers = [SQLHandler() for _ in range(size)]
 
     def aquire(self):