diff --git a/app/api/verification/coingecko/[address]/route.ts b/app/api/verification/coingecko/[address]/route.ts index 7765d2212..f0acb2b19 100644 --- a/app/api/verification/coingecko/[address]/route.ts +++ b/app/api/verification/coingecko/[address]/route.ts @@ -38,10 +38,10 @@ export async function GET(_request: Request, { params: { address } }: Params) { }); if (!response.ok) { - if (response.status === 404) { - Logger.debug('[api:coingecko] Coin not found by contract address', { address }); - } else if (response.status === 429) { + if (response.status === 429) { Logger.warn('[api:coingecko] Rate limit exceeded', { sentry: true }); + } else if (response.status === 404) { + Logger.warn('[api:coingecko] No data found', { address }); } else { Logger.panic(new Error(`Coingecko contract API error: ${response.status}`)); } diff --git a/app/api/verification/coingecko/__tests__/route.test.ts b/app/api/verification/coingecko/__tests__/route.test.ts index 32bc6a4b5..becdc0ee9 100644 --- a/app/api/verification/coingecko/__tests__/route.test.ts +++ b/app/api/verification/coingecko/__tests__/route.test.ts @@ -61,7 +61,7 @@ describe('CoinGecko API Route', () => { const response = await callRoute(VALID_ADDRESS); expect(response.status).toBe(404); expect(await response.json()).toEqual({ error: 'Failed to fetch coingecko data' }); - expect(Logger.debug).toHaveBeenCalledWith('[api:coingecko] Coin not found by contract address', { + expect(Logger.warn).toHaveBeenCalledWith('[api:coingecko] No data found', { address: VALID_ADDRESS, }); }); diff --git a/app/api/verification/jupiter/[mintAddress]/route.ts b/app/api/verification/jupiter/[mintAddress]/route.ts index 8b14e9b4a..8bc88133e 100644 --- a/app/api/verification/jupiter/[mintAddress]/route.ts +++ b/app/api/verification/jupiter/[mintAddress]/route.ts @@ -42,11 +42,9 @@ export async function GET(_request: Request, { params: { mintAddress } }: Params }); if (!response.ok) { - if (response.status === 404) { - Logger.debug('[api:jupiter] Token not found', { mintAddress }); - } else if (response.status === 429) { + if (response.status === 429) { Logger.warn('[api:jupiter] Rate limit exceeded', { sentry: true }); - } else { + } else if (response.status !== 404) { Logger.panic(new Error(`Jupiter API error: ${response.status}`)); } return NextResponse.json( diff --git a/app/api/verification/rugcheck/[mintAddress]/route.ts b/app/api/verification/rugcheck/[mintAddress]/route.ts index 85615921d..ff1441b2d 100644 --- a/app/api/verification/rugcheck/[mintAddress]/route.ts +++ b/app/api/verification/rugcheck/[mintAddress]/route.ts @@ -44,7 +44,6 @@ export async function GET(_request: Request, { params: { mintAddress } }: Params if (!response.ok) { const noDataStatus = await getNoDataStatus(response); if (noDataStatus) { - Logger.debug('[api:rugcheck] No data available', { mintAddress, status: noDataStatus }); return NextResponse.json( { error: 'No rugcheck data available' }, { headers: NO_STORE_HEADERS, status: noDataStatus }, diff --git a/bench/BUILD.md b/bench/BUILD.md index d83aae058..9babd937e 100644 --- a/bench/BUILD.md +++ b/bench/BUILD.md @@ -59,4 +59,4 @@ | Dynamic | `/tx/[signature]` | 60 kB | 1.53 MB | | Dynamic | `/tx/[signature]/inspect` | 620 B | 1.29 MB | | Static | `/tx/inspector` | 630 B | 1.29 MB | -| Static | `/verified-programs` | 10 kB | 180 kB | \ No newline at end of file +| Static | `/verified-programs` | 10 kB | 180 kB |