forked from blizzthewolf/SeaCogs
fix(repo): changed all loggers to red.seacogs.<cog_name>
instead of red.sea.<cog_name>
This commit is contained in:
parent
f059145681
commit
497f6a0a1a
5 changed files with 7 additions and 7 deletions
|
@ -1,3 +1,3 @@
|
|||
import logging
|
||||
|
||||
logger = logging.getLogger("red.sea.aurora")
|
||||
logger = logging.getLogger("red.seacogs.aurora")
|
||||
|
|
|
@ -27,7 +27,7 @@ class Backup(commands.Cog):
|
|||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.logger = logging.getLogger("red.sea.backup")
|
||||
self.logger = logging.getLogger("red.seacogs.backup")
|
||||
|
||||
@commands.group(autohelp=True)
|
||||
@commands.is_owner()
|
||||
|
|
|
@ -31,7 +31,7 @@ class Bible(commands.Cog):
|
|||
self.config = Config.get_conf(
|
||||
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_user(bible=None)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import logging
|
||||
|
||||
logger = logging.getLogger('red.sea.pterodactyl')
|
||||
logger = logging.getLogger('red.seacogs.pterodactyl')
|
||||
websocket_logger = logging.getLogger('red.seacogs.pterodactyl.websocket')
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# pylint: disable=cyclic-import
|
||||
import json
|
||||
import re
|
||||
from logging import getLogger
|
||||
from typing import Optional, Union
|
||||
|
||||
import aiohttp
|
||||
|
@ -11,7 +10,7 @@ from pydactyl import PterodactylClient
|
|||
from redbot.core.utils.chat_formatting import bold, pagify
|
||||
|
||||
from pterodactyl.config import config
|
||||
from pterodactyl.logger import logger
|
||||
from pterodactyl.logger import logger, websocket_logger
|
||||
from pterodactyl.pterodactyl import Pterodactyl
|
||||
|
||||
|
||||
|
@ -23,7 +22,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
|
|||
|
||||
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")
|
||||
|
||||
auth_message = json.dumps({"event": "auth", "args": [websocket_credentials['data']['token']]})
|
||||
|
|
Loading…
Reference in a new issue