Fix propagation for the insight logger
This commit is contained in:
parent
d08425e17d
commit
972bfd9c68
2 changed files with 2 additions and 3 deletions
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue