MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / logApiResponse

Function logApiResponse

frontend/src/lib/api/debugHelper.ts:7–15  ·  view source on GitHub ↗
(url: string, response: any, error?: any)

Source from the content-addressed store, hash-verified

5};
6
7export const logApiResponse = (url: string, response: any, error?: any) => {
8 if (import.meta.env.DEV) {
9 if (error) {
10 console.error(`❌ API Error ${url}:`, error);
11 } else {
12 console.log(`API Success ${url}:`, response);
13 }
14 }
15};

Callers 2

requestMethod · 0.90
streamMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected