-
Notifications
You must be signed in to change notification settings - Fork 5
Added external logging #108
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
base: main
Are you sure you want to change the base?
Conversation
Давай только по красоте сделаем без structlog.get_config() |
И ещё тесты стоит добавить |
Добавишь тесты? |
@@ -1,4 +1,4 @@ | |||
from __future__ import annotations | |||
from future import annotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему?
stream_handler: typing.Final = logging.StreamHandler() | ||
root_logger: typing.Final = logging.getLogger() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай поместим ниже, перед stream_handler.setFormatter(
structlog.stdlib.add_logger_name, | ||
tracer_injection, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Трейсинг будет полезен во всех логах
Исправил работоспособность CI в форках: https://github.com/community-of-python/community-workflow/pulls?q=is%3Apr+is%3Aclosed |
No description provided.