Fix propagation for the insight logger

This commit is contained in:
Innokentii Konstantinov 2022-07-25 12:59:12 +04:00
parent d08425e17d
commit 972bfd9c68
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,6 @@ from rest_framework.views import APIView
from apps.auth_token.auth import PluginAuthentication
logger = logging.getLogger(__name__)
insight_logger = logging.getLogger("insight_logger")

View file

@ -154,7 +154,7 @@ LOGGING = {
"filters": {"request_id": {"()": "log_request_id.filters.RequestIDFilter"}},
"formatters": {
"standard": {"format": "source=engine:app google_trace_id=%(request_id)s logger=%(name)s %(message)s"},
"insight_logger": {"format": "insight_logs=true %(message)s"},
"insight_logger": {"format": "insight_logs=true logger=%(name)s %(message)s"},
},
"handlers": {
"console": {
@ -171,7 +171,7 @@ LOGGING = {
"insight_logger": {
"handlers": ["insight_logger"],
"level": "INFO",
"propagate": True,
"propagate": False,
},
"": {
"handlers": ["console"],