mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 02:12:32 -05:00
Privatize APIs by renaming or removing them from __all__ (#6021)
This commit is contained in:
11
redbot/core/_drivers/log.py
Normal file
11
redbot/core/_drivers/log.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import functools
|
||||
import logging
|
||||
import os
|
||||
|
||||
if os.getenv("RED_INSPECT_DRIVER_QUERIES"):
|
||||
LOGGING_INVISIBLE = logging.DEBUG
|
||||
else:
|
||||
LOGGING_INVISIBLE = 0
|
||||
|
||||
log = logging.getLogger("red.driver")
|
||||
log.invisible = functools.partial(log.log, LOGGING_INVISIBLE)
|
||||
Reference in New Issue
Block a user