Closed
Bug 555069
Opened 14 years ago
Closed 14 years ago
Add IP to logging
Categories
(addons.mozilla.org Graveyard :: Code Quality, defect, P5)
addons.mozilla.org Graveyard
Code Quality
Tracking
(Not tracked)
RESOLVED
FIXED
5.10
People
(Reporter: clouserw, Assigned: jsocol)
Details
(Whiteboard: [qa-])
We should add the request's IP to the logging. Make sure we check X_FORWARDED_FOR. Django should have this built in somewhere, if not, maybe a patch would be appropriate. P5 for now. Whoever gets time can do this, or I will eventually.
Comment 1•14 years ago
|
||
Django used to have a middleware for this: http://docs.djangoproject.com/en/dev/releases/1.1/#id1
Reporter | ||
Updated•14 years ago
|
Assignee: nobody → james
Target Milestone: 5.9 → 5.10
Updated•14 years ago
|
Summary: Add IP to loggging → Add IP to logging
Assignee | ||
Comment 2•14 years ago
|
||
Here's middleware to replace the old Django middleware. http://github.com/jsocol/commonware
Reporter | ||
Comment 3•14 years ago
|
||
I think that will work, r+. Replacing REMOTE_ADDR seems fine but I don't think I've seen it before. Shouldn't matter though.
Assignee | ||
Comment 4•14 years ago
|
||
Wil, I followed Django's old method. If you'd rather it do something else, I can change it.
Reporter | ||
Comment 5•14 years ago
|
||
I think it'll work fine :)
Assignee | ||
Comment 6•14 years ago
|
||
r? http://github.com/jsocol/zamboni/commit/17f4259888aafa1ed65739f00f9a582b2b972f67 Also involved updates to commonware: http://github.com/jsocol/commonware
Reporter | ||
Comment 7•14 years ago
|
||
Added some comments on the commit. r+, thanks
Assignee | ||
Comment 8•14 years ago
|
||
http://github.com/jbalogh/zamboni/commit/470e8935a45c73e0f5e768f70cca8041c9f0b104
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Whiteboard: [qa-]
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•