mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-20 09:38:23 +08:00
🔊 fix logger color tag
This commit is contained in:
parent
1e294b8fbe
commit
62135dc117
@ -234,7 +234,8 @@ class Driver(BaseDriver):
|
||||
return
|
||||
|
||||
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.")
|
||||
await ws.close(code=status.WS_1008_POLICY_VIOLATION)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user