Skip to content

Commit bd24855

Browse files
committed
eliminate duplicative logging
1 parent 58f2b4b commit bd24855

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
66

7+
## [1.0.9]  (2019-09-07)
8+
9+
### Changed
10+
11+
- Eliminate duplicative logging from response functions
12+
713
## [1.0.8]  (2019-09-07)
814

915
### Changed
@@ -44,6 +50,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/),
4450
- Update older libraries
4551
- Now publish from Git tags instead of master pushes
4652

53+
[1.0.9]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.8...v1.0.9
4754
[1.0.8]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.7...v1.0.8
4855
[1.0.7]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.1...v1.0.7
4956
[1.0.1]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.0...v1.0.1

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@manwaring/lambda-wrapper",
33
"description": "A lambda handler wrapper to abstract common functionality and provide useful defaults",
4-
"version": "1.0.8",
4+
"version": "1.0.9",
55
"scripts": {
66
"publish-please-dry-run": "publish-please --dry-run",
77
"publish-please": "publish-please",

src/common/metrics.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ export class Metrics {
1515

1616
success(response?: any): void {
1717
logger.debug(`Successfully processed ${this.type} event, responding with`, response);
18-
tagger.tagAndLog('success', response);
18+
tagger.tagOnly('success', response);
1919
}
2020

2121
valid(response?: any): void {
2222
logger.debug(`Valid ${this.type} event, responding with`, response);
23-
tagger.tagAndLog('valid', response);
23+
tagger.tagOnly('valid', response);
2424
}
2525

2626
invalid(response?: any): void {
2727
logger.debug(`Invalid ${this.type} event, responding with`, response);
28-
tagger.tagAndLog('invalid', response);
28+
tagger.tagOnly('invalid', response);
2929
}
3030

3131
redirect(response?: any): void {
3232
logger.debug(`Redirecting ${this.type} event, responding with`, response);
33-
tagger.tagAndLog('redirect', response);
33+
tagger.tagOnly('redirect', response);
3434
}
3535

3636
error(response?: any): void {
3737
logger.debug(`Error processing ${this.type} event, responding with`, response);
38-
tagger.tagAndLog('error', response);
38+
tagger.tagOnly('error', response);
3939
}
4040

4141
failure(response?: any): void {
4242
logger.debug(`Failure processing ${this.type} event, responding with`, response);
43-
tagger.tagAndLog('failure', response);
43+
tagger.tagOnly('failure', response);
4444
}
4545
}

0 commit comments

Comments
 (0)