Skip to content
Snippets Groups Projects
Verified Commit cce9385f authored by Kevin Morris's avatar Kevin Morris
Browse files

fix(db): remove debug logging of dbname


Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent c07c40bc
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,6 @@ from sqlalchemy.orm import Query, Session, SessionTransaction, scoped_session, s
import aurweb.config
import aurweb.util
from aurweb import logging
logger = logging.get_logger(__name__)
DRIVERS = {
"mysql": "mysql+mysqldb"
}
......@@ -96,11 +92,6 @@ def get_session(engine: Engine = None) -> Session:
sessionmaker(autocommit=True, autoflush=False, bind=engine))
_sessions[dbname] = Session()
# If this is the first grab of this session, log out the
# database name used.
raw_dbname = test_name()
logger.debug(f"DBName({raw_dbname}): {dbname}")
return _sessions.get(dbname)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment