mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(db): remove debug logging of dbname
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
c07c40bcb6
commit
cce9385fb1
1 changed files with 0 additions and 9 deletions
|
@ -16,10 +16,6 @@ from sqlalchemy.orm import Query, Session, SessionTransaction, scoped_session, s
|
||||||
import aurweb.config
|
import aurweb.config
|
||||||
import aurweb.util
|
import aurweb.util
|
||||||
|
|
||||||
from aurweb import logging
|
|
||||||
|
|
||||||
logger = logging.get_logger(__name__)
|
|
||||||
|
|
||||||
DRIVERS = {
|
DRIVERS = {
|
||||||
"mysql": "mysql+mysqldb"
|
"mysql": "mysql+mysqldb"
|
||||||
}
|
}
|
||||||
|
@ -96,11 +92,6 @@ def get_session(engine: Engine = None) -> Session:
|
||||||
sessionmaker(autocommit=True, autoflush=False, bind=engine))
|
sessionmaker(autocommit=True, autoflush=False, bind=engine))
|
||||||
_sessions[dbname] = Session()
|
_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)
|
return _sessions.get(dbname)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue