uWsgi+nginx+Django, can't get python back traces ?

Discussion in 'Programming' started by Elixer, Nov 1, 2012.

  1. Elixer

    Elixer Diamond Member

    Joined:
    May 7, 2002
    Messages:
    7,842
    Likes Received:
    48
    Site admin changed to using uWsgi to run the Django site (was fastCGI before), and now, we aren't getting any python errors back traces at all in any logs.

    Anyone have any idea how to debug a issue like this?
    Already have checked nginx's logs, uWsgi's logs (using --logto), and the django application itself logs, and none of them have any python related content in them.
    I can see via nginx that we are getting 500 errors, so, obviously, python is crashing someplace...

    from the project's settings...
    Code:
    LOGGING = {
        'version': 1,
        'disable_existing_loggers': True,
        'formatters': {
            'verbose': {
                'format': '[%(asctime)s] %(levelname)s %(pathname)s:%(lineno)s %(message)s'
            }
        },
        'handlers': {
            'null': {
                'level':'DEBUG',
                'class':'django.utils.log.NullHandler',
                },
            'mail_admins': {
                'level': 'ERROR',
                'class': 'django.utils.log.AdminEmailHandler',
                },
            'console':{
                'level':'DEBUG',
                'class':'logging.StreamHandler',
                'formatter': 'verbose',
                }
        },
        'loggers': {
            'django.db.backends': {
                'handlers': ['null'],
                'propagate': False,
                },
            'django.request': {
                'handlers': ['console', 'mail_admins'],
                'level': 'ERROR',
                'propagate': True,
                },
            'django': {
                'handlers': ['null'],
                'level': 'DEBUG',
                'propagate': True,
                },
            '': {
                'handlers': ['console'],
                'level': 'DEBUG',
                'propagate': True,
                },
            }
    }
     
  2. DannyBoy

    DannyBoy Diamond Member

    Joined:
    Nov 27, 2002
    Messages:
    8,813
    Likes Received:
    0
    Check and double check your nginx routes
     
  3. Elixer

    Elixer Diamond Member

    Joined:
    May 7, 2002
    Messages:
    7,842
    Likes Received:
    48
    Yeah, already did.
    Didn't find a answer for this issue.

    However, I installed raven, and using Sentry, and that is pure awesome!
    https://www.getsentry.com/welcome/ For those that haven't seen what this does...
     
Loading...