Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 39 lines 1.7 kB view raw
1diff --git a/imdb/parser/sql/__init__.py b/imdb/parser/sql/__init__.py 2index cd4a3e3..3fcfdd4 100644 3--- a/imdb/parser/sql/__init__.py 4+++ b/imdb/parser/sql/__init__.py 5@@ -557,7 +557,6 @@ class IMDbSqlAccessSystem(IMDbBase): 6 """The class used to access IMDb's data through a SQL database.""" 7 8 accessSystem = 'sql' 9- _sql_logger = logging.getLogger('imdbpy.parser.sql') 10 11 def __init__(self, uri, adultSearch=True, *arguments, **keywords): 12 """Initialize the access system.""" 13@@ -582,7 +581,7 @@ class IMDbSqlAccessSystem(IMDbBase): 14 except ImportError as e: 15 raise IMDbError('unable to import SQLAlchemy') 16 # Set the connection to the database. 17- self._sql_logger.debug('connecting to %s', uri) 18+ logger.debug('connecting to %s', uri) 19 try: 20 self._connection = setConnection(uri, DB_TABLES) 21 except AssertionError as e: 22@@ -593,7 +592,7 @@ class IMDbSqlAccessSystem(IMDbBase): 23 # Maps some IDs to the corresponding strings. 24 self._kind = {} 25 self._kindRev = {} 26- self._sql_logger.debug('reading constants from the database') 27+ logger.debug('reading constants from the database') 28 try: 29 for kt in KindType.select(): 30 self._kind[kt.id] = kt.kind 31@@ -1616,7 +1615,7 @@ class IMDbSqlAccessSystem(IMDbBase): 32 return 33 if not hasattr(self, '_connection'): 34 return 35- self._sql_logger.debug('closing connection to the database') 36+ logger.debug('closing connection to the database') 37 try: 38 self._connection.close() 39 except: