Skip to content
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

Tracebacks not printed on console v 3.4.4 | Logger #4409

Closed
geekashu opened this issue Aug 15, 2016 · 0 comments
Closed

Tracebacks not printed on console v 3.4.4 | Logger #4409

geekashu opened this issue Aug 15, 2016 · 0 comments
Labels
Milestone

Comments

@geekashu
Copy link

geekashu commented Aug 15, 2016

With 3.4.4 Tracebacks are not being printed on console. For version 3.3.3 - 3.4.3, Tracebacks were/are printed fine on console. But in version 3.4.4 it prints only in the browser.

This may be the reason for the issue #4172

Using - Django v1.9.9
Here is my logger config...


LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'verbose': {
            'format': '[%(levelname)s] %(asctime)s  | %(module)s %(funcName)s %(lineno)d | PID - %(process)d, Thread - %(thread)d | %(message)s'
        },
    },
    'handlers': {
        'general': {
            'level': 'DEBUG',
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': '/var/log/app/general.log',
            'maxBytes': 1024*1024*10,
            'backupCount': 10,
            'formatter': 'verbose',
        },
        'request': {
            'level': 'DEBUG',
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': '/var/log/app/request.log',
            'maxBytes': 1024*1024*10,
            'backupCount': 10,
            'formatter': 'verbose',
        },
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
            'formatter': 'verbose',
        }
    },
    'loggers': {
        '': {
            'handlers': ['console', 'general'],
            'level': 'DEBUG',
        },
        'django.request': {
            'handlers': ['console', 'request'],
            'level': 'DEBUG',
            'propagate': False,
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants