kleine aenderung im logging

This commit is contained in:
+++ 2022-07-13 22:10:07 +02:00
parent 666a997a90
commit 0eba169038

View file

@ -362,11 +362,12 @@ def main():
if change_status(status, timestamp, config['api']['api']) is True:
answer = raw_data
if config['mastodon']['send'].lower() == 'true':
logging.debug('Toot is set to true')
try:
toot_thread = Toot(status, timestamp, config)
toot_thread.run()
except InitException as e:
logging.debug('InitException: {}'.format(e))
logging.error('InitException: {}'.format(e))
except Exception as ex:
logging.debug('Exception: {}'.format(ex))
else: logging.debug('Toot is set to false')