Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Updated telemetry payload.

Mike Cao0d33e6d08f56
diff --git a/scripts/telemetry.js b/scripts/telemetry.js
index 4971b7591..d2c717977 100644
--- a/scripts/telemetry.js
+++ b/scripts/telemetry.js
@@ -31,14 +31,14 @@ async function run() {
node: process.version,
platform: os.platform(),
arch: os.arch(),
- os: os.version(),
+ os: `${os.type()} (${os.version()})`,
isDocker: isDocker(),
isCI,
};
await retry(
async () => {
- const res = await fetch(url, {
+ await fetch(url, {
method: 'post',
cache: 'no-cache',
headers: {
@@ -46,8 +46,6 @@ async function run() {
},
body: JSON.stringify(payload),
});
-
- console.log(res);
},
{ minTimeout: 500, retries: 1, factor: 1 },
).catch(() => {});