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
Hi, When running invoke locally it appears it does not configure logging..
Should it ?
No handlers could be found for logger "root"
The text was updated successfully, but these errors were encountered:
Can you elaborate?
Are you import logging?
import logging
Sorry, something went wrong.
It looks like something else already configured the root logger (both locally and on AWS), so I made my own, and that seemed to fix it:
logger = logging.getLogger('handler') logger.handlers = [] logger.setLevel(getattr(logging, os.environ['LOG_LEVEL'], logging.NOTSET)) log_handler = logging.StreamHandler() log_handler.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')) logger.addHandler(log_handler) logger.propagate = False
More info here: https://forum.serverless.com/t/python-lambda-logging-duplication-workaround/1585/6
No branches or pull requests
Hi, When running invoke locally it appears it does not configure logging..
Should it ?
The text was updated successfully, but these errors were encountered: