aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-05 15:58:41 +0300
committerBonfaceKilz2021-05-06 08:50:10 +0300
commit6202ef9c4016d08cecf75fd8217c9b53d18ed201 (patch)
tree3c38a415bf643937738554a2fda0e1a12737f08e
parenta25ca626b7a6e1ca75d1fa0a830705e1df4d1e6c (diff)
downloadgenenetwork2-6202ef9c4016d08cecf75fd8217c9b53d18ed201.tar.gz
wqflask: database: Remove logging
-rw-r--r--wqflask/wqflask/database.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/wqflask/wqflask/database.py b/wqflask/wqflask/database.py
index e743c4b3..42fa1594 100644
--- a/wqflask/wqflask/database.py
+++ b/wqflask/wqflask/database.py
@@ -5,9 +5,6 @@ from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from utility.tools import SQL_URI
-import utility.logger
-logger = utility.logger.getLogger(__name__)
-
engine = create_engine(SQL_URI, encoding="latin1")
@@ -23,10 +20,8 @@ def init_db():
# they will be registered properly on the metadata. Otherwise
# you will have to import them first before calling init_db()
#import yourapplication.models
- logger.info("Initializing database connection")
import wqflask.model
Base.metadata.create_all(bind=engine)
- logger.info("Done creating all model metadata")
init_db()