Skip to content

Commit

Permalink
refactor(AWS HTTP API): Ensure function name in a warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Mar 17, 2020
1 parent 841aac9 commit dc958ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/aws/package/compile/events/httpApi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,15 @@ Object.defineProperties(
if (functionTimeout >= routeTargetData.timeout) {
logWarning(
`HTTP API endpoint timeout setting (${routeTargetData.timeout}s) is ` +
`lower or equal to function timeout (${functionTimeout}s). ` +
`lower or equal to function (${functionName}) timeout (${functionTimeout}s). ` +
'This may introduce situations where endpoint times out ' +
'for succesful lambda invocation.'
);
}
} else {
if (functionTimeout >= 29) {
logWarning(
`Function timeout setting (${functionTimeout}) is greater than ` +
`Function (${functionName}) timeout setting (${functionTimeout}) is greater than ` +
'maximum allowed timeout for HTTP API endpoint (29s). ' +
'This may introduce situation where endpoint times out ' +
'for succesful lambda invocation.'
Expand Down

0 comments on commit dc958ff

Please sign in to comment.