aws-cloudwatch-log
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.1.1"></a> | ||
## [0.1.1](https://github.com/nicolasdao/aws-cloudwatch-logger/compare/v0.1.0...v0.1.1) (2017-12-18) | ||
### Bug Fixes | ||
* Make sure no exceptions are returned if logger is set to Dev Mode ([9f85478](https://github.com/nicolasdao/aws-cloudwatch-logger/commit/9f85478)) | ||
<a name="0.1.0"></a> | ||
@@ -7,0 +17,0 @@ # 0.1.0 (2017-12-15) |
18
index.js
@@ -45,2 +45,5 @@ /** | ||
const createLogStream = (logStreamName, { logGroupName, region, accessKeyId, secretAccessKey, local }) => { | ||
if (local) | ||
return Promise.resolve({ message: 'No need to create stream. Local mode is on.' }) | ||
if (!logGroupName) | ||
@@ -69,11 +72,8 @@ throw new Error('Missing required argument: \'logGroupName\' is required.') | ||
}) | ||
if (local) | ||
return Promise.resolve({ message: 'No need to create stream. Local mode is on.' }) | ||
else | ||
return request.post('', payload) | ||
.then(results => results.data) | ||
.catch(err => { | ||
throw new Error(err.response.data.message) | ||
}) | ||
return request.post('', payload) | ||
.then(results => results.data) | ||
.catch(err => { | ||
throw new Error(err.response.data.message) | ||
}) | ||
} | ||
@@ -80,0 +80,0 @@ |
{ | ||
"name": "aws-cloudwatch-log", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Fast & Simple Logging to AWS CloudWatch", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17217
240