Go Back   AnandTech Forums > Software > Programming

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Home and Garden
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 11-01-2012, 01:00 PM   #1
Elixer
Diamond Member
 
Elixer's Avatar
 
Join Date: May 2002
Posts: 3,807
Default uWsgi+nginx+Django, can't get python back traces ?

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,
            },
        }
}
__________________
The truth is incontrovertible, malice may attack it, ignorance may deride it, but in the end; there it is.

The best argument against democracy is a five-minute conversation with the average voter.
Elixer is offline   Reply With Quote
Old 11-05-2012, 09:05 AM   #2
DannyBoy
Diamond Member
 
DannyBoy's Avatar
 
Join Date: Nov 2002
Location: London, UK
Posts: 8,763
Default

Check and double check your nginx routes
__________________
DannyBoy is offline   Reply With Quote
Old 11-05-2012, 08:31 PM   #3
Elixer
Diamond Member
 
Elixer's Avatar
 
Join Date: May 2002
Posts: 3,807
Default

Quote:
Originally Posted by DannyBoy View Post
Check and double check your nginx routes
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...
__________________
The truth is incontrovertible, malice may attack it, ignorance may deride it, but in the end; there it is.

The best argument against democracy is a five-minute conversation with the average voter.
Elixer is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.