Re-enable session logging
This commit is contained in:
parent
cc80022428
commit
7163a4c6e4
@ -45,9 +45,11 @@ def Session() -> Generator[scoped_session, None, None]:
|
|||||||
function = frame.function
|
function = frame.function
|
||||||
lineno = frame.lineno
|
lineno = frame.lineno
|
||||||
Session = scoped_session(sessionmaker(bind=engine, future=True))
|
Session = scoped_session(sessionmaker(bind=engine, future=True))
|
||||||
# log.debug(f"Session acquired, {file=}, {function=},
|
log.debug(
|
||||||
# function{lineno=}, {Session=}")
|
f"Session acquired, {file=}, {function=}, "
|
||||||
|
f"function{lineno=}, {Session=}"
|
||||||
|
)
|
||||||
yield Session
|
yield Session
|
||||||
# log.debug(" Session released")
|
log.debug(" Session released")
|
||||||
Session.commit()
|
Session.commit()
|
||||||
Session.close()
|
Session.close()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user