From 94c6e80536cf804850edb50bd71087f26269b365 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 9 Jun 2020 13:17:02 +1000 Subject: [PATCH] Add stub sqlalchmey logging code --- src/pyelephant.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pyelephant.py b/src/pyelephant.py index 57da621..ee445bc 100755 --- a/src/pyelephant.py +++ b/src/pyelephant.py @@ -6,6 +6,8 @@ import sqlalchemy.orm import dateparser +import logging + from typing import List @@ -146,6 +148,11 @@ if __name__ == '__main__': db = sa.create_engine(f"sqlite:///{dbpath}") session = sa.orm.Session(db) + + # logging.basicConfig() + # logger = logging.getLogger('sqlalchemy.engine') + # logger.setLevel(logging.DEBUG) + args = vars(args) func = args['func'] del args['func']