Skip to content

Commit

Permalink
Delete sensitive data from log (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olha Virolainen committed Oct 15, 2020
1 parent ce9d42a commit efc76f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/amqp.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Amqp {
}

_decodeMessage(amqpMessage) {
log.trace('Message received: %j', amqpMessage);
log.trace('Message received');
let message;
if (this.settings.INPUT_FORMAT === 'error') {
message = this._decodeErrorMessage(amqpMessage);
Expand Down Expand Up @@ -147,7 +147,7 @@ class Amqp {
}

decryptMessage(callback, message) {
log.trace('Message received: %j', message);
log.trace('Message received');

if (message === null) {
log.warn('NULL message received');
Expand Down Expand Up @@ -381,7 +381,7 @@ class Amqp {
const properties = this._createPropsFromHeaders(headers);
const settings = this.settings;

log.trace('Rebound message: %j', originalMessage);
log.trace('Rebound message');
const reboundIteration = getReboundIteration(originalMessage.properties.headers.reboundIteration);

if (reboundIteration > settings.REBOUND_LIMIT) {
Expand Down
4 changes: 2 additions & 2 deletions lib/sailor.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Sailor {
return co(function* doStartup() {
log.debug('Starting up component');
const result = yield this.invokeModuleFunction('startup');
log.trace('Startup data', { result });
log.trace('Startup data received');
const handle = hooksData.startup(this.settings);
try {
const state = _.isEmpty(result) ? {} : result;
Expand Down Expand Up @@ -289,7 +289,7 @@ class Sailor {
}

logger.info('Successfully obtained message body.', { objectId });
logger.trace('Message body object', { object });
logger.trace('Message body object received');

return object;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "elasticio-sailor-nodejs",
"description": "The official elastic.io library for bootstrapping and executing for Node.js connectors",
"version": "2.6.16",
"version": "2.6.17",
"main": "run.js",
"scripts": {
"lint": "./node_modules/.bin/eslint lib spec mocha_spec lib run.js runService.js",
Expand Down

0 comments on commit efc76f3

Please sign in to comment.