Comments (2)
Can you elaborate?
Are you import logging
?
from python-lambda.
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
from python-lambda.
Related Issues (20)
- Pointing deployment to aliases and pulling original env variables
- TypeError: str expected, not int HOT 2
- Bundling too many artifacts HOT 4
- Deploy bundles boto3 and botocore packages to deploy into lambda HOT 2
- Add ability to specify a schedule to run the lambda
- Add ability to create a role with a provided policy document
- No Module Service HOT 2
- Fix simple typo: Tranlate -> Translate
- Accessing config.yaml parameters HOT 2
- ModuleNotFoundError: No module named 'click' HOT 4
- Dependencies aren't included in the dist/*.zip file after a build
- Installation fails due to conflicting botocore version HOT 10
- Deploying Lambda removes VPC Configuration HOT 3
- Dependabot couldn't authenticate with https://pypi.org/simple/
- Testing multiple events together HOT 2
- Feature request: Support for Poetry dev separation
- Lambda deploy : call to `update_configuration_function` is made before lambda update status is ready HOT 5
- AccessDeniedException Error while lambda deploy HOT 1
- Unable to install cloud-init on lambda deploy HOT 2
- latest version is 11.8.0 which was released on Jan 05, 2021 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-lambda.