From b79b20682b90299e85bb8cbde671f7de68163f12 Mon Sep 17 00:00:00 2001 From: Thibault Le Ouay Date: Tue, 1 Jul 2025 11:14:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20improve=20logs=20(#1280)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🥅 improve logs * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- apps/web/src/app/api/checker/test/tcp/route.ts | 4 +++- apps/web/src/components/ping-response-analysis/utils.ts | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/api/checker/test/tcp/route.ts b/apps/web/src/app/api/checker/test/tcp/route.ts index 9c4032a3..d4f89c64 100644 --- a/apps/web/src/app/api/checker/test/tcp/route.ts +++ b/apps/web/src/app/api/checker/test/tcp/route.ts @@ -59,8 +59,10 @@ async function checkTCP(url: string, region: MonitorFlyRegion) { const data = TCPResponse.safeParse(json); if (!data.success) { + console.error(res); + console.error(JSON.stringify(json)); console.error( - `something went wrong with result ${json} request to ${url} error ${data.error.message}`, + `something went wrong with request to ${url} error ${data.error.message}`, ); throw new Error(data.error.message); } diff --git a/apps/web/src/components/ping-response-analysis/utils.ts b/apps/web/src/components/ping-response-analysis/utils.ts index 9691fa87..5eeced66 100644 --- a/apps/web/src/components/ping-response-analysis/utils.ts +++ b/apps/web/src/components/ping-response-analysis/utils.ts @@ -175,9 +175,10 @@ export async function checkRegion( const data = checkerSchema.safeParse(json); if (!data.success) { - console.log(json); + console.error(res); + console.error(JSON.stringify(json)); console.error( - `something went wrong with result ${json} request to ${url} error ${data.error.message}`, + `something went wrong with request to ${url} error ${data.error.message}`, ); throw new Error(data.error.message); } -- 2.51.2