fix(repo): changed all loggers to red.seacogs.<cog_name> instead of red.sea.<cog_name>
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 49s
Actions / Build Documentation (MkDocs) (push) Successful in 43s

This commit is contained in:
Seaswimmer 2024-03-07 01:32:27 -05:00
parent f059145681
commit 497f6a0a1a
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
5 changed files with 7 additions and 7 deletions

View file

@ -1,3 +1,3 @@
import logging import logging
logger = logging.getLogger("red.sea.aurora") logger = logging.getLogger("red.seacogs.aurora")

View file

@ -27,7 +27,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 = logging.getLogger("red.sea.backup") self.logger = logging.getLogger("red.seacogs.backup")
@commands.group(autohelp=True) @commands.group(autohelp=True)
@commands.is_owner() @commands.is_owner()

View file

@ -31,7 +31,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 = logging.getLogger("red.sea.bible") self.logger = logging.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)

View file

@ -1,3 +1,4 @@
import logging import logging
logger = logging.getLogger('red.sea.pterodactyl') logger = logging.getLogger('red.seacogs.pterodactyl')
websocket_logger = logging.getLogger('red.seacogs.pterodactyl.websocket')

View file

@ -1,7 +1,6 @@
# pylint: disable=cyclic-import # pylint: disable=cyclic-import
import json import json
import re import re
from logging import getLogger
from typing import Optional, Union from typing import Optional, Union
import aiohttp import aiohttp
@ -11,7 +10,7 @@ from pydactyl import PterodactylClient
from redbot.core.utils.chat_formatting import bold, pagify from redbot.core.utils.chat_formatting import bold, pagify
from pterodactyl.config import config from pterodactyl.config import config
from pterodactyl.logger import logger from pterodactyl.logger import logger, websocket_logger
from pterodactyl.pterodactyl import Pterodactyl from pterodactyl.pterodactyl import Pterodactyl
@ -23,7 +22,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
websocket_credentials = await retrieve_websocket_credentials(coginstance) websocket_credentials = await retrieve_websocket_credentials(coginstance)
async with websockets.connect(websocket_credentials['data']['socket'], origin=base_url, ping_timeout=60, logger=getLogger("red.sea.pterodactyl.websocket")) as websocket: async with websockets.connect(websocket_credentials['data']['socket'], origin=base_url, ping_timeout=60, logger=websocket_logger) as websocket:
logger.info("WebSocket connection established") logger.info("WebSocket connection established")
auth_message = json.dumps({"event": "auth", "args": [websocket_credentials['data']['token']]}) auth_message = json.dumps({"event": "auth", "args": [websocket_credentials['data']['token']]})