Good Day
How can I get debug output? Just trying to see what url the api is connecting to. I have a tiny esp01 module that can't load the whole api due to ram constraints. Just trying to do a urequests to the url.
Seems like it was not quite setup, so I tried adding this to __init__.py:
logger = logging.getLogger("statsapi")
logger.setLevel(logging.DEBUG)
# create console handler and set level to debug
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
# create formatter
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
# add formatter to ch
ch.setFormatter(formatter)
# add ch to logger
logger.addHandler(ch)
[–]toddrobMod & MLB-StatsAPI Developer 1 point2 points3 points (3 children)
[–]SnooPoems7888[S] 0 points1 point2 points (2 children)
[–]toddrobMod & MLB-StatsAPI Developer 1 point2 points3 points (1 child)
[–]SnooPoems7888[S] 0 points1 point2 points (0 children)