Skip to content

Commit

Permalink
feat: Add binding to invocationId via req.context.invocationId #6
Browse files Browse the repository at this point in the history
  • Loading branch information
yvele committed May 2, 2017
1 parent e032b00 commit 75c38af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/IncomingMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ export default class IncomingMessage extends EventEmitter {
this.socket = { destroy: NOOP };
this.connection = createConnectionObject(context);

// Add access to log via context.log
this.context = { log: context.log.bind(context) };
// Add access specific objects via req.context
this.context = {
log : context.log.bind(context),
invocationId : context.invocationId
};
}

}

0 comments on commit 75c38af

Please sign in to comment.