logging
This commit is contained in:
parent
7cd5befb8a
commit
56d72cb887
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ from sqlalchemy.ext.declarative import declarative_base
|
||||||
import settings
|
import settings
|
||||||
import state
|
import state
|
||||||
|
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
engine = create_engine('sqlite:///%s' % settings.db_path, connect_args={'timeout': 90})
|
engine = create_engine('sqlite:///%s' % settings.db_path, connect_args={'timeout': 90})
|
||||||
Session = scoped_session(sessionmaker(bind=engine))
|
Session = scoped_session(sessionmaker(bind=engine))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue