ShoobyDoo / OPGG.py

An unofficial Python library for accessing OPGG data.
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

Fix logging to accurately show which module #25

Closed ShoobyDoo closed 2 months ago

ShoobyDoo commented 2 months ago

Currently, there are certain log entries that are saying they're being called from the cacher module, but this is simply not accurate. I believe when I fetch the logger and set the name in the cacher module, it sets it as the root logger name and thus every subsequent log entries seems like its coming from OPGG.py->cacher when it should be from their respective modules instead.

This is both a bug, but also an enhancement task as it can help pinpoint issues that might arise later on which require debugging.