Skip to content

Logging on production #3755

Answered by pfk-beta
pfk-beta asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I think I have solved problem. I have reconfigured logging dict in production.py. Not which entry solved problem:

"loggers": {
        "root": {"level": "INFO", "handlers": ["console"]},
        'django': {
            'handlers': ['console'],
            'level': 'INFO',
        },
        "django.db.backends": {
            "level": "ERROR",
            "handlers": ["console"],
            "propagate": False,
        },
        # Errors logged by the SDK itself
        "sentry_sdk": {"level": "ERROR", "handlers": ["console"], "propagate": False},
        "django.security.DisallowedHost": {
            "level": "ERROR",
            "handlers": ["console"],
            "propagate": Fa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pfk-beta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant