feat: Default logging replaced with loguru

This commit is contained in:
AURUMVORXX
2025-07-15 20:46:12 +05:00
parent acfa97de6f
commit 35350efcd1
4 changed files with 4 additions and 18 deletions

View File

@@ -6,7 +6,7 @@ from typing import Optional
from .constants import Constant
from .functions.event import callEvent
from .serialize import _deserialize
from .logger import logger
from loguru import logger
class PythonWebsocketServer:
@@ -50,7 +50,7 @@ class PythonWebsocketServer:
port=self.port,
ping_interval=self.ping_interval,
):
logger.info(f'Server is started at ws://{self.host}:{self.port}')
logger.success(f'Server is started at ws://{self.host}:{self.port}')
PythonWebsocketServer._current_server = self
asyncio.create_task(callEvent('onInit', **{}))
await self._stop_event.wait()