set log handler on root logger
This commit is contained in:
parent
e87d562abb
commit
f447ddfd79
1 changed files with 1 additions and 2 deletions
|
@ -26,8 +26,7 @@ log.setLevel(logging.DEBUG)
|
||||||
formatter = logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s")
|
formatter = logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s")
|
||||||
handler = logging.StreamHandler(sys.stdout)
|
handler = logging.StreamHandler(sys.stdout)
|
||||||
handler.setFormatter(formatter)
|
handler.setFormatter(formatter)
|
||||||
logger_disnake.addHandler(handler)
|
logging.getLogger(None).addHandler(handler)
|
||||||
log.addHandler(handler)
|
|
||||||
|
|
||||||
if load_dotenv(find_dotenv(usecwd=True)):
|
if load_dotenv(find_dotenv(usecwd=True)):
|
||||||
log.debug("Loaded .env")
|
log.debug("Loaded .env")
|
||||||
|
|
Loading…
Reference in a new issue