kleine aenderung im logging
This commit is contained in:
parent
666a997a90
commit
0eba169038
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue