From aa2f37edccc49e2988bf88e2dcf684de0b7a15c4 Mon Sep 17 00:00:00 2001 From: Eric-2369 Date: Wed, 17 Jul 2024 14:10:00 +0800 Subject: [PATCH] refactor: not print api key when build --- app/config/server.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/config/server.ts b/app/config/server.ts index 676b0174f24b..10af87500105 100644 --- a/app/config/server.ts +++ b/app/config/server.ts @@ -96,11 +96,11 @@ function getApiKey(keys?: string) { const randomIndex = Math.floor(Math.random() * apiKeys.length); const apiKey = apiKeys[randomIndex]; if (apiKey) { - console.log( - `[Server Config] using ${randomIndex + 1} of ${ - apiKeys.length - } api key - ${apiKey}`, - ); + // console.log( + // `[Server Config] using ${randomIndex + 1} of ${ + // apiKeys.length + // } api key - ${apiKey}`, + // ); } return apiKey;