Add stub sqlalchmey logging code
This commit is contained in:
parent
d91cc1235e
commit
94c6e80536
@ -6,6 +6,8 @@ import sqlalchemy.orm
|
|||||||
|
|
||||||
import dateparser
|
import dateparser
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
@ -146,6 +148,11 @@ if __name__ == '__main__':
|
|||||||
db = sa.create_engine(f"sqlite:///{dbpath}")
|
db = sa.create_engine(f"sqlite:///{dbpath}")
|
||||||
|
|
||||||
session = sa.orm.Session(db)
|
session = sa.orm.Session(db)
|
||||||
|
|
||||||
|
# logging.basicConfig()
|
||||||
|
# logger = logging.getLogger('sqlalchemy.engine')
|
||||||
|
# logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
args = vars(args)
|
args = vars(args)
|
||||||
func = args['func']
|
func = args['func']
|
||||||
del args['func']
|
del args['func']
|
||||||
|
Loading…
Reference in New Issue
Block a user