From ed1bf3325ea9f2084f493fde9e13116f96ca80bd Mon Sep 17 00:00:00 2001 From: Pedro Ramos Date: Wed, 17 Apr 2024 17:27:56 +0200 Subject: [PATCH] Solve sonarcloud issue --- src/base.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/base.ts b/src/base.ts index d6b0be37028..ccca24b00a1 100644 --- a/src/base.ts +++ b/src/base.ts @@ -88,7 +88,6 @@ export default abstract class extends Command { async recorderFromEnv(prefix: string): Promise { let sink: Sink = new DiscardSink(); const analyticsConfigFile = join(homedir(), '.asyncapi-analytics'); - // console.log(analyticsConfigFile); if (!existsSync(analyticsConfigFile)) { await writeFile(analyticsConfigFile, JSON.stringify({ analyticsEnabled: 'true', infoMessageShown: 'false', userID: uuidv4()}), { encoding: 'utf8' }); @@ -111,7 +110,7 @@ export default abstract class extends Command { sink = new NewRelicSink(process.env.ASYNCAPI_METRICS_NEWRELIC_KEY || 'eu01xx73a8521047150dd9414f6aedd2FFFFNRAL'); if (analyticsConfigFileContent.infoMessageShown === 'false') { - this.log('\nAsyncAPI anonymously tracks command executions to improve the specification and tools, ensuring no sensitive data reaches our servers. It aids in comprehending how AsyncAPI tools are used and adopted, facilitating ongoing improvements to our specifications and tools.\n\nTo disable tracking, please run the following command:\n asyncapi config analytics --disable\n\nOnce disabled, if you want to enable tracking back again then run:\n asyncapi config analytics --enable'); + this.log('\nAsyncAPI anonymously tracks command executions to improve the specification and tools, ensuring no sensitive data reaches our servers. It aids in comprehending how AsyncAPI tools are used and adopted, facilitating ongoing improvements to our specifications and tools.\n\nTo disable tracking, please run the following command:\n asyncapi config analytics --disable\n\nOnce disabled, if you want to enable tracking back again then run:\n asyncapi config analytics --enable\n'); analyticsConfigFileContent.infoMessageShown = 'true'; await writeFile(analyticsConfigFile, JSON.stringify(analyticsConfigFileContent), { encoding: 'utf8' }); }