mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Add success console.log messages for en/disabling of usage tracking
This commit is contained in:
parent
a6bedbf793
commit
29db4f00a0
@ -38,9 +38,11 @@ class Tracking {
|
||||
|
||||
if (this.options.enabled === 'yes') {
|
||||
fse.removeSync(path.join(serverlessPath, trackingFileName));
|
||||
this.serverless.cli.log('Tracking successfully enabled');
|
||||
} else if (this.options.enabled === 'no') {
|
||||
fs.writeFileSync(path.join(serverlessPath, trackingFileName),
|
||||
'Keep this file to enable tracking');
|
||||
this.serverless.cli.log('Tracking successfully disabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user