Commit 2d5191e7 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

Move db version log in DB object

parent 1498612a
......@@ -29,14 +29,13 @@ from agkyra.syncer import common, utils
logger = logging.getLogger(__name__)
logger.debug("sqlite3.version = %s" % sqlite3.version)
logger.debug("sqlite3.sqlite_version = %s" % sqlite3.sqlite_version)
thread_local_data = threading.local()
class DB(object):
def __init__(self, dbname, initialize=False):
logger.debug("sqlite3.version = %s" % sqlite3.version)
logger.debug("sqlite3.sqlite_version = %s" % sqlite3.sqlite_version)
self.dbname = dbname
self.db = sqlite3.connect(dbname)
if initialize:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment