Skip to content

Commit 698d865

Browse files
committed
add websocket to logs
1 parent 94ee50b commit 698d865

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
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+
## [3.6.1]  (2020-06-21)
8+
9+
### Updated
10+
11+
- Log websocket payload from api wrapper when log levels set to info
12+
713
## [3.6.0]  (2020-06-21)
814

915
### Added
@@ -229,6 +235,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/),
229235
- Update older libraries
230236
- Now publish from Git tags instead of master pushes
231237

238+
[3.6.1]: https://github.com/manwaring/lambda-wrapper/compare/v3.6.0...v3.6.1
232239
[3.6.0]: https://github.com/manwaring/lambda-wrapper/compare/v3.5.0...v3.6.0
233240
[3.5.0]: https://github.com/manwaring/lambda-wrapper/compare/v3.4.0...v3.5.0
234241
[3.4.0]: https://github.com/manwaring/lambda-wrapper/compare/v3.3.3...v3.4.0

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": "3.6.0",
4+
"version": "3.6.1",
55
"scripts": {
66
"publish-please-dry-run": "publish-please --dry-run",
77
"publish-please": "publish-please",

src/api/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class Request {
1717
const body = new Body(event.body, headers).getParsedBody();
1818
const TEST_REQUEST_HEADER = process.env.TEST_REQUEST_HEADER || 'Test-Request';
1919
const testRequest = headers && headers[TEST_REQUEST_HEADER] ? JSON.parse(headers[TEST_REQUEST_HEADER]) : false;
20-
metrics.common({ body, path, query, auth, headers, testRequest });
20+
metrics.common({ body, websocket, path, query, auth, headers, testRequest });
2121
return { body, websocket, path, query, auth, headers, testRequest };
2222
}
2323

0 commit comments

Comments
 (0)