mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 00:01:27 +00:00
🔊 fix logger color tag
This commit is contained in:
@ -234,8 +234,9 @@ class Driver(BaseDriver):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if x_self_id in self._clients:
|
if x_self_id in self._clients:
|
||||||
logger.warning("There's already a reverse websocket connection, "
|
logger.opt(colors=True).warning(
|
||||||
f"<y>{adapter.upper()} Bot {x_self_id}</y> ignored.")
|
"There's already a reverse websocket connection, "
|
||||||
|
f"<y>{adapter.upper()} Bot {x_self_id}</y> ignored.")
|
||||||
await ws.close(code=status.WS_1008_POLICY_VIOLATION)
|
await ws.close(code=status.WS_1008_POLICY_VIOLATION)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user