diff --git a/nonebot/drivers/fastapi.py b/nonebot/drivers/fastapi.py
index a2c315f5..d83fc762 100644
--- a/nonebot/drivers/fastapi.py
+++ b/nonebot/drivers/fastapi.py
@@ -234,8 +234,9 @@ class Driver(BaseDriver):
return
if x_self_id in self._clients:
- logger.warning("There's already a reverse websocket connection, "
- f"{adapter.upper()} Bot {x_self_id} ignored.")
+ logger.opt(colors=True).warning(
+ "There's already a reverse websocket connection, "
+ f"{adapter.upper()} Bot {x_self_id} ignored.")
await ws.close(code=status.WS_1008_POLICY_VIOLATION)
return