mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-15 15:06:35 +00:00
Merge pull request #2104 from balena-io/delay-investigation
Add ability to disable analytics for performance testing
This commit is contained in:
commit
08fc1a3924
@ -104,8 +104,11 @@ export async function trackCommand(commandSignature: string) {
|
||||
});
|
||||
});
|
||||
}
|
||||
// Don't actually call mixpanel.track() while running test cases
|
||||
if (!process.env.BALENA_CLI_TEST_TYPE) {
|
||||
// Don't actually call mixpanel.track() while running test cases, or if suppressed
|
||||
if (
|
||||
!process.env.BALENA_CLI_TEST_TYPE &&
|
||||
!process.env.BALENARC_NO_ANALYTICS
|
||||
) {
|
||||
await mixpanel.track(`[CLI] ${commandSignature}`, {
|
||||
distinct_id: username,
|
||||
version: packageJSON.version,
|
||||
|
Loading…
x
Reference in New Issue
Block a user