diff --git a/index.js b/index.js index 327990b..786a5d4 100644 --- a/index.js +++ b/index.js @@ -29,11 +29,11 @@ class StackTerminationProtection { * @param {...any} args */ log(...args) { - let output = 'serverless-stack-termination-protection: '; + let output = 'stack-termination-protection: '; args.forEach((x) => { output += ` ${(typeof(x) === 'object') ? JSON.stringify(x) : x}`; }); - console.log(output); + this.serverless.cli.log(output); } /** @@ -69,8 +69,7 @@ class StackTerminationProtection { .then((stackId) => this.log( 'Successfully', `${isProtected ? 'en' : 'dis'}abled`, - 'termination protection for stack', - stackId + 'termination protection' )) .catch((err) => this.log( 'Failed to update termination protection:', diff --git a/package-lock.json b/package-lock.json index ca2c4dd..285e8be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { "name": "serverless-stack-termination-protection", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 1 } diff --git a/package.json b/package.json index d9d29d1..4ef8da1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-stack-termination-protection", - "version": "1.0.2", + "version": "1.0.3", "description": "Serverless plugin to update the CloudFormation stack termination protection", "main": "index.js", "scripts": {