Skip to content

Commit 8997fac

Browse files
[Dashboard] fix: Improve error logging for analytics API failures (#6033)
1 parent 403e422 commit 8997fac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/dashboard/src/@/api/analytics.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export async function getUserOpUsage(
7878
});
7979

8080
if (res?.status !== 200) {
81-
console.error("Failed to fetch user ops usage");
81+
console.error(
82+
`Failed to fetch user ops usage: ${res?.status} - ${res.statusText}`,
83+
);
8284
return [];
8385
}
8486

@@ -99,7 +101,9 @@ export async function getClientTransactions(
99101
);
100102

101103
if (res?.status !== 200) {
102-
console.error("Failed to fetch client transactions stats");
104+
console.error(
105+
`Failed to fetch client transactions stats: ${res?.status} - ${res.statusText}`,
106+
);
103107
return [];
104108
}
105109

0 commit comments

Comments
 (0)