tRPC: don't repeat curl debug

This commit is contained in:
Enrico Ros
2023-11-01 17:31:40 -07:00
parent 3dc94c7f23
commit 2db5fd545b
+1 -1
View File
@@ -28,7 +28,7 @@ function createFetcherFromTRPC<TPostBody, TOut>(parser: (response: Response) =>
let response: Response;
try {
if (SERVER_DEBUG_WIRE)
console.log('-> tRPC curl', debugGenerateCurlCommand(method, url, headers, body as any));
console.log('-> tRPC', debugGenerateCurlCommand(method, url, headers, body as any));
response = await fetch(url, { method, headers, ...(body !== undefined ? { body: JSON.stringify(body) } : {}) });
} catch (error: any) {
console.error(`[${moduleName} Fetch Error]:`, error);