Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

🥅 improve logs (#1280)

* 🥅 improve logs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
b79b2068 3f765e00

+6 -3
+3 -1
apps/web/src/app/api/checker/test/tcp/route.ts
··· 59 59 const data = TCPResponse.safeParse(json); 60 60 61 61 if (!data.success) { 62 + console.error(res); 63 + console.error(JSON.stringify(json)); 62 64 console.error( 63 - `something went wrong with result ${json} request to ${url} error ${data.error.message}`, 65 + `something went wrong with request to ${url} error ${data.error.message}`, 64 66 ); 65 67 throw new Error(data.error.message); 66 68 }
+3 -2
apps/web/src/components/ping-response-analysis/utils.ts
··· 175 175 const data = checkerSchema.safeParse(json); 176 176 177 177 if (!data.success) { 178 - console.log(json); 178 + console.error(res); 179 + console.error(JSON.stringify(json)); 179 180 console.error( 180 - `something went wrong with result ${json} request to ${url} error ${data.error.message}`, 181 + `something went wrong with request to ${url} error ${data.error.message}`, 181 182 ); 182 183 throw new Error(data.error.message); 183 184 }