From 20ab5d2383485c15398256e38256a408a5aed9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=AB=E9=81=97=E5=BF=98=E7=9A=84=E8=AE=B0=E5=BF=86?= <32097237+YIWANG-sketch@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:17:50 +0800 Subject: [PATCH] adjust display position --- index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.mjs b/index.mjs index 198abc8..ff41fc2 100644 --- a/index.mjs +++ b/index.mjs @@ -653,6 +653,8 @@ const createTunnel = async (tunnelType, port) => { }; app.listen(port, async () => { + // 输出当前月份的请求统计信息 + provider.getLogger().printStatistics(); console.log(`YouChat proxy listening on port ${port}`); if (!validApiKey) { console.log(`Proxy is currently running with no authentication`); @@ -664,8 +666,6 @@ app.listen(port, async () => { const tunnelType = process.env.TUNNEL_TYPE || "localtunnel"; await createTunnel(tunnelType, port); } - // 输出当前月份的请求统计信息 - provider.getLogger().printStatistics(); }); function AnthropicApiKeyAuth(req, res, next) {