You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: