-
Notifications
You must be signed in to change notification settings - Fork 429
boto level logging #21
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
Comments
I've taken a look at the other issues.. Looks like this is a duplicate of #16 |
Thanks for reporting this, Marcio - I’ll prioritise to get this done by the
end of the week.
I’ll likely use POWERTOOLS_LOG_LEVEL to make it more explicit, and prevent
these annoying side effects
…On Wed, 15 Apr 2020 at 17:55, marcioemiranda ***@***.***> wrote:
I've taken a look at the other issues..
Looks like this is a duplicate of #16
<https://github.com/awslabs/aws-lambda-powertools/issues/16>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<aws-powertools/powertools-lambda#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPQBB6QCWTWQ7TPN4R3RTRMXRJVANCNFSM4MIWORRQ>
.
|
13 tasks
This is now fixed in 0.8.0 - Here's what you need to do.
Thanks again @marcioemiranda for the patience while I researched better ways to fix this. from aws_lambda_powertools.logging import Logger
from aws_lambda_powertools.logging.logger import set_package_logger
set_package_logger() # Enable package diagnostics (DEBUG log), if you want
logger = Logger()
@logger.inject_lambda_context
def lambda_handler(event, context):
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Heitor,
I am using samplig rate for my logger. An annoying side effect is that when it's enabled, it gets flooded with boto debug logs.
I took a look in the code and found a boto_level parameter in the setup function under aws_lambda_logging.py. I assume if I set this parameter to a different level then it would solve this problem.
Can I set this up via the logger_setup function in logger.py?
The text was updated successfully, but these errors were encountered: