Add stub sqlalchmey logging code

This commit is contained in:
Danny Robson 2020-06-09 13:17:02 +10:00
parent d91cc1235e
commit 94c6e80536

View File

@ -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']