Logging improvementµ

This commit is contained in:
BuildTools 2021-06-01 14:57:43 +02:00
parent 2bccf99f7c
commit 29629e2785

View File

@ -276,7 +276,7 @@ def main(argv):
# Setup logging to file
# TODO Add timestamps
logging.basicConfig(filename=twit_account + '.log', level=logging.WARNING)
logging.basicConfig(filename=twit_account + '.log', level=logging.INFO)
logging.info('Running with the following parameters:')
logging.info(' -t ' + twit_account)
logging.info(' -i ' + mast_instance)
@ -285,6 +285,7 @@ def main(argv):
logging.info(' -v ' + str(get_vids))
logging.info(' -a ' + str(max_age))
logging.info(' -d ' + str(min_delay))
logging.info(' -c ' + str(cap))
# Try to open database. If it does not exist, create it
sql = sqlite3.connect('twoot.db')