Skip to content

Commit c54fb07

Browse files
authored
Remove sensitive data logging (#54)
* Remove sensitive data logging
1 parent cd8cd3d commit c54fb07

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.1.5 (September 25, 2020)
2+
* Remove sensitive data logging
3+
14
## 1.1.4 (August 20, 2020)
25
* `Split on JSONata Expression` action update: add possibility to emit non-array objects.
36

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,6 +1,6 @@
11
{
22
"name": "@elasticio/splitter",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "elastic.io component for splitting incoming messages",
55
"scripts": {
66
"pretest": "eslint split.js lib spec --fix",

split.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ async function processAction(msg, conf) {
66
const splitting = conf.splitter || {};
77
const body = msg.body || {};
88

9-
this.logger.debug('Received new message with body: %j', body);
10-
this.logger.debug('Config: %j', conf);
9+
this.logger.trace('Received new message with body: %j', body);
10+
this.logger.trace('Splitting: %j', splitting);
1111

1212
const split = splitting === '$' ? body : _.get(body, splitting);
1313

@@ -31,7 +31,7 @@ async function processAction(msg, conf) {
3131
if (_.isArray(split)) {
3232
split.forEach((elem) => results.push(elem));
3333
} else if (_.isObject(split)) {
34-
this.logger.debug(`"${splitting}" is not an array. Returning the original object`);
34+
this.logger.trace(`"${splitting}" is not an array. Returning the original object`);
3535
results.push(split);
3636
}
3737

0 commit comments

Comments
 (0)