misc(repo): changed all logger names
This commit is contained in:
parent
b9e06d6288
commit
833d6954cc
4 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,3 @@
|
||||||
from red_commons.logging import getLogger
|
from red_commons.logging import getLogger
|
||||||
|
|
||||||
logger = getLogger("red.seacogs.aurora")
|
logger = getLogger("red.SeaCogs.Aurora")
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Backup(commands.Cog):
|
||||||
def __init__(self, bot: Red):
|
def __init__(self, bot: Red):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.logger = getLogger("red.seacogs.backup")
|
self.logger = getLogger("red.SeaCogs.Backup")
|
||||||
|
|
||||||
def format_help_for_context(self, ctx: commands.Context) -> str:
|
def format_help_for_context(self, ctx: commands.Context) -> str:
|
||||||
pre_processed = super().format_help_for_context(ctx) or ""
|
pre_processed = super().format_help_for_context(ctx) or ""
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Bible(commands.Cog):
|
||||||
self.config = Config.get_conf(
|
self.config = Config.get_conf(
|
||||||
self, identifier=481923957134912, force_registration=True
|
self, identifier=481923957134912, force_registration=True
|
||||||
)
|
)
|
||||||
self.logger = getLogger("red.seacogs.bible")
|
self.logger = getLogger("red.SeaCogs.Bible")
|
||||||
self.config.register_global(bible="de4e12af7f28f599-02")
|
self.config.register_global(bible="de4e12af7f28f599-02")
|
||||||
self.config.register_user(bible=None)
|
self.config.register_user(bible=None)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from red_commons import logging
|
from red_commons import logging
|
||||||
from red_commons.logging import getLogger
|
from red_commons.logging import getLogger
|
||||||
|
|
||||||
logger = getLogger('red.seacogs.pterodactyl')
|
logger = getLogger('red.SeaCogs.Pterodactyl')
|
||||||
websocket_logger = getLogger('red.seacogs.pterodactyl.websocket')
|
websocket_logger = getLogger('red.SeaCogs.Pterodactyl.websocket')
|
||||||
if logger.level >= logging.VERBOSE:
|
if logger.level >= logging.VERBOSE:
|
||||||
websocket_logger.setLevel(logging.logging.INFO)
|
websocket_logger.setLevel(logging.logging.INFO)
|
||||||
elif logger.level < logging.VERBOSE:
|
elif logger.level < logging.VERBOSE:
|
||||||
|
|
Loading…
Reference in a new issue