Skip to content

Instantly share code, notes, and snippets.

@Zwork101
Created March 30, 2018 14:01
Show Gist options
  • Save Zwork101/ee4ca4e87cf325f9c16303602c4cc945 to your computer and use it in GitHub Desktop.
Save Zwork101/ee4ca4e87cf325f9c16303602c4cc945 to your computer and use it in GitHub Desktop.
logging, failing
from os import environ
import logging
from trackerbot.app import TrackerBot
bot = TrackerBot()
if __name__ == '__main__':
log = logging.getLogger('TrackerBotLogger')
handler = logging.StrFormatStyle('%(asctime)s:%(levelname)s:%(name)s: %(message)s')
log.addHandler(handler)
log.setLevel(logging.DEBUG)
logging.debug("Starting Bot (Logging should see this in DEBUG)")
bot.run(environ.get("BOT_TOKEN"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment