Timer output go to verbose mode

This commit is contained in:
Yorick Barbanneau 2022-05-04 23:45:44 +02:00
parent 33efc0ee74
commit a8b4733333
2 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,6 @@ def parse_args():
if __name__ == '__main__':
args = parse_args()
t = Timer()
#logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger()
tty_handler = logging.StreamHandler()
@ -79,6 +78,8 @@ if __name__ == '__main__':
logger.setLevel(logging.DEBUG)
logger.debug('DEBUG mode activated')
t = Timer(logger=logger.info)
logging.debug('Import pgsql connection file {}'.format(args.connection_file))
with open(args.connection_file) as cf:
pg_conn = cf.read()