mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-21 18:15:50 +08:00
🔊 fix logger color tag
This commit is contained in:
parent
1e294b8fbe
commit
62135dc117
@ -234,7 +234,8 @@ 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(
|
||||||
|
"There's already a reverse websocket connection, "
|
||||||
f"<y>{adapter.upper()} Bot {x_self_id}</y> ignored.")
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user