We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It came to occur since 1.36.0. Output of sls print contains Warnings.
sls print
The reproduction code is as follows.
My serverless.yml:
service: servicename provider: name: aws runtime: nodejs8.10 functions: function1: handler: lib/proxy.handler function2: handler: lib/proxy.handler
Yes, We have multiple functions having same handler. The difference between the two functions is environment variables and so on.
shell script:
stdout:
Serverless: Warning: A handler "lib/proxy.handler" is duplicated in functions: function1, function2. service: servicename provider: name: aws runtime: nodejs8.10 functions: function1: handler: lib/proxy.handler function2: handler: lib/proxy.handler
sls print should output valid yaml. Warnings should be written to stderr. Otherwise, sls print should not output warnings.
As mentioned above.
Similar or dependent issues:
Add warning for multiple functions having same handler: #4414 #5638
// I think that this warning itself is useful.
The text was updated successfully, but these errors were encountered:
This issue has recurred in versions that use logInfo / logWarning / logError.
logInfo
logWarning
logError
serverless/lib/classes/Error.js
Lines 30 to 45 in e1092af
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This is a Bug Report
Description
It came to occur since 1.36.0.
Output of
sls print
contains Warnings.The reproduction code is as follows.
My serverless.yml:
Yes, We have multiple functions having same handler.
The difference between the two functions is environment variables and so on.
shell script:
stdout:
sls print
should output valid yaml.Warnings should be written to stderr. Otherwise,
sls print
should not output warnings.As mentioned above.
Similar or dependent issues:
Add warning for multiple functions having same handler: #4414 #5638
// I think that this warning itself is useful.
Additional Data
The text was updated successfully, but these errors were encountered: