feat(analytics-uploader): retrieve analytics params to object for console reporting

This commit is contained in:
Matej Kriz
2026-02-12 12:57:46 +01:00
committed by Matěj Kříž
parent 2b149603f5
commit 103f882d46

View File

@@ -89,8 +89,9 @@ export const reportEvent = async ({
loggerEnabled,
}: ReportEventProps) => {
if (loggerEnabled) {
const payload = Object.fromEntries(new URL(url).searchParams.entries());
// eslint-disable-next-line no-console
console.log(`[Analytics] '${type}': ${url}`);
console.log(`[Analytics] '${type}'`, { type, url, retry, payload });
}
try {