-
Notifications
You must be signed in to change notification settings - Fork 5
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
pyConnect Logging Duplicate Entries #45
Projects
Comments
The uvicorn logging configuration defines a handler for each logger. This causes duplicate entries, since logging is hierarchical. We can address the issue by:
|
New output log /Users/tdw/projects/lfh/pyconnect/venv/bin/python /Users/tdw/projects/lfh/pyConnect/pyconnect/main.py
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - Loaded logging configuration from logging.yaml
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - **************************************************
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - pyConnect Configuration Settings
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - ==================================================
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - UVICORN_APP: pyconnect.main:app
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - UVICORN_HOST: 0.0.0.0
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - UVICORN_PORT: 5000
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - UVICORN_RELOAD: True
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - ==================================================
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - CERTIFICATE_AUTHORITY_PATH: /Users/tdw/projects/lfh/pyconnect/venv/lib/python3.8/site-packages/certifi/cacert.pem
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - LOGGING_CONFIG_PATH: logging.yaml
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - ==================================================
2021-02-27 09:50:51,933 - pyconnect.server_handlers - INFO - **************************************************
2021-02-27 09:50:51,991 - uvicorn.error - INFO - Application startup complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current pyConnect logging configuration creates duplicate log entries.
This appears to be due to Uvicorn log configuration.
It looks like we need to make some updates to the uvicorn logging configuration, specified with
log_config
touvicorn.run()
, and update our logging.yaml.The text was updated successfully, but these errors were encountered: