mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
refactor(AWS HTTP API): Ensure function name in a warning message
This commit is contained in:
parent
841aac941f
commit
dc958ff6bf
@ -397,7 +397,7 @@ 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.'
|
||||
);
|
||||
@ -405,7 +405,7 @@ Object.defineProperties(
|
||||
} 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.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user