mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
refactor(AWS HTTP API): Unify warning messages
This commit is contained in:
parent
08ad5ce040
commit
8d4ed6dd2a
@ -398,8 +398,8 @@ Object.defineProperties(
|
||||
logWarning(
|
||||
`HTTP API endpoint timeout setting (${routeTargetData.timeout}s) is ` +
|
||||
`lower or equal to function (${functionName}) timeout (${functionTimeout}s). ` +
|
||||
'This may introduce situations where endpoint times out ' +
|
||||
'for succesful lambda invocation.'
|
||||
'This may introduce a situation where endpoint times out ' +
|
||||
'for a succesful lambda invocation.'
|
||||
);
|
||||
}
|
||||
} else {
|
||||
@ -407,8 +407,8 @@ Object.defineProperties(
|
||||
logWarning(
|
||||
`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.'
|
||||
'This may introduce a situation where endpoint times out ' +
|
||||
'for a succesful lambda invocation.'
|
||||
);
|
||||
} else if (functionTimeout === 29) {
|
||||
logWarning(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user