-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Logger decorator does not accept more arguments than event and context #69
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hey @VassilisPallas if you have the bandwidth, feel free to send a PR for this quick fix and we can include it in the next release ASAP. Otherwise we can tackle that later |
done @VassilisPallas - it'll be available in today's release :) |
hey @VassilisPallas this is now available as part of today's 1.23.0 release :) Thank you again for this feature request! |
Hey @heitorlessa, thanks for the quick fix! |
What were you trying to accomplish?
I'm trying to use the logger in a lambda function that is executed once we deploy it via Terraform. We pass some custom arguments, however, the decorator is not able to handle them.
Expected Behavior
The expected behaviour should be the decorator to shallow the extra arguments
Current Behavior
Lambda function is falling with the error
TypeError: decorate() got an unexpected keyword argument 'argument_name'
Possible Solution
By appending variadic arguments to decorate function, ti should fix the problem.
Steps to Reproduce (for bugs)
It's similar to that error.
Environment
I caught it during testing, below is the exact error
The text was updated successfully, but these errors were encountered: