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: if change_status(status, timestamp, config['api']['api']) is True:
answer = raw_data answer = raw_data
if config['mastodon']['send'].lower() == 'true': if config['mastodon']['send'].lower() == 'true':
logging.debug('Toot is set to true')
try: try:
toot_thread = Toot(status, timestamp, config) toot_thread = Toot(status, timestamp, config)
toot_thread.run() toot_thread.run()
except InitException as e: except InitException as e:
logging.debug('InitException: {}'.format(e)) logging.error('InitException: {}'.format(e))
except Exception as ex: except Exception as ex:
logging.debug('Exception: {}'.format(ex)) logging.debug('Exception: {}'.format(ex))
else: logging.debug('Toot is set to false') else: logging.debug('Toot is set to false')