mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
feat(analytics-uploader): retrieve analytics params to object for console reporting
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user