Closed
Bug 550173
Opened 14 years ago
Closed 14 years ago
[dashboard] Switch off DEBUG, create a good error page
Categories
(Mozilla Localizations :: Infrastructure, defect, P1)
Mozilla Localizations
Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Pike, Assigned: stas)
Details
Attachments
(1 file, 1 obsolete file)
6.75 KB,
patch
|
Pike
:
review+
|
Details | Diff | Splinter Review |
We'll need a descent 500 handler, and switch off DEBUG. I think that's the leak we're seeing in the twistd daemon.
Reporter | ||
Comment 1•14 years ago
|
||
... and in the buildbot master, too. The culprit are that with DEBUG on, we're keeping a log of all sql queries in django.db.connection.queries.
Priority: -- → P1
Assignee | ||
Comment 3•14 years ago
|
||
Pike, can you take a look and tell me if you like it?
Attachment #453173 -
Flags: review?(l10n)
Assignee | ||
Comment 4•14 years ago
|
||
Django docs say that "If DEBUG is set to False (in your settings module) and if you didn't create a 404.html file, an Http500 is raised instead. So remember to create a 404.html." I'll add 404.html to the patch tomorrow.
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•14 years ago
|
||
I added a simple 404.html in this patch. Bug 574143 tracks making it better.
Attachment #453173 -
Attachment is obsolete: true
Attachment #453492 -
Flags: review?(l10n)
Attachment #453173 -
Flags: review?(l10n)
Reporter | ||
Comment 6•14 years ago
|
||
Comment on attachment 453492 [details] [diff] [review] Patch B. Add 404 too r=me.
Attachment #453492 -
Flags: review?(l10n) → review+
Assignee | ||
Comment 7•14 years ago
|
||
http://hg.mozilla.org/l10n/django-site/rev/85a5d42908dd Pike, can you patch local_settings.py (add SERVER_EMAIL) on the vm?
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 8•14 years ago
|
||
I've set things up to use dashboard@l10n.mozilla.org, though that doesn't receive replies. Right now, the server doesn't send out mails, there's nothing listening to port 25 on localhost. I filed bug 574178 on how to set things up to send mails.
Reporter | ||
Comment 9•14 years ago
|
||
Landed a corresponding fix for l10n-master, http://hg.mozilla.org/users/axel_mozilla.com/l10n-master/rev/903818058c19
You need to log in
before you can comment on or make changes to this bug.
Description
•