Skip to content

Commit

Permalink
Display functionName
Browse files Browse the repository at this point in the history
  • Loading branch information
godu committed Sep 30, 2019
1 parent 77559c5 commit ca49813
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/serverless-offline-dynamodb-streams/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ServerlessOfflineDynamoDBStreams {

const lambdaContext = new LambdaContext(__function, this.service.provider, (err, data) => {
this.serverless.cli.log(
`[${err ? figures.cross : figures.tick}] ${JSON.stringify(data) || ''}`
`[${err ? figures.cross : figures.tick}] ${functionName} ${JSON.stringify(data) || ''}`
);
cb(err, data);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless-offline-kinesis/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ServerlessOfflineKinesis {
const handler = functionHelper.createHandler(funOptions, this.getConfig());
const lambdaContext = new LambdaContext(__function, this.service.provider, (err, data) => {
this.serverless.cli.log(
`[${err ? figures.cross : figures.tick}] ${JSON.stringify(data) || ''}`
`[${err ? figures.cross : figures.tick}] ${functionName} ${JSON.stringify(data) || ''}`
);
cb(err, data);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless-offline-sqs/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class ServerlessOfflineSQS {

const lambdaContext = new LambdaContext(__function, this.service.provider, (err, data) => {
this.serverless.cli.log(
`[${err ? figures.cross : figures.tick}] ${JSON.stringify(data) || ''}`
`[${err ? figures.cross : figures.tick}] ${functionName} ${JSON.stringify(data) || ''}`
);
cb(err, data);
});
Expand Down

0 comments on commit ca49813

Please sign in to comment.