fix(db): remove debug logging of dbname

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-17 11:57:03 -08:00
parent c07c40bcb6
commit cce9385fb1
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -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)