Created
March 30, 2018 14:01
-
-
Save Zwork101/ee4ca4e87cf325f9c16303602c4cc945 to your computer and use it in GitHub Desktop.
logging, failing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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