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.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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue