Skip to content

How to debug LDAP authentication #454

Discussion options

You must be logged in to vote

What I do is to implement a custom logging:

# logging configuration from scratch
LOGLEVEL = environ.get('LOGLEVEL', 'INFO')

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'verbose': {
            'format': '{levelname} {asctime} {module} {process:d} {thread:d} {message}',
            'style': '{',
        },
        'simple': {
            'format': '{levelname} {message}',
            'style': '{',
        },
    },
    'filters': {
        'require_debug_false': {
            '()': 'django.utils.log.RequireDebugFalse',
        },
    },
    'handlers': {
        'console': {
            'level': LOGLEVEL,
            'filters': ['requir…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@ryanmerolle
Comment options

@bahner
Comment options

@ryanmerolle
Comment options

@ryanmerolle
Comment options

@daniel-zook
Comment options

Answer selected by ryanmerolle
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jCaffie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants