🐛 fix fastapi forward reconnect error

This commit is contained in:
yanyongyu 2021-08-12 13:59:01 +08:00
parent 59db66ef27
commit 3a0265b0f6

View File

@ -440,6 +440,7 @@ class Driver(ReverseDriver, ForwardDriver):
logger.opt(colors=True).error(
"<r><bg #f8bbd0>WebSocket connection closed by peer. "
"Try to reconnect...</bg #f8bbd0></r>")
break
except Exception as e:
logger.opt(colors=True, exception=e).error(
f"<r><bg #f8bbd0>Error while connecting to {url}. "