Closed Bug 583047 Opened 14 years ago Closed 13 years ago

Add username to logs if available

Categories

(addons.mozilla.org Graveyard :: Code Quality, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: jbalogh)

Details

(Whiteboard: [qa-])

Right now I manually add (user:$username) to log messages where it's important, but I'd rather just have it be automated.  In the same way we do %(REMOTE_ADDR)s I'd like to see log messages support %(USERNAME)s and %(USERID)s.  The user can be found in request.user.username or request.user.id.
Target Milestone: 5.11.8 → 5.11.9
Assignee: james → nobody
Target Milestone: 5.11.9 → 4.x (triaged)
This is upliftable into playdoh
Target Milestone: 4.x (triaged) → Q2 2011
Assignee: nobody → jbalogh
Priority: -- → P3
Target Milestone: Q2 2011 → 6.0.8
https://github.com/jsocol/commonware/commit/e228fa8 and https://github.com/jbalogh/zamboni/commit/3b6ee2c 

(In reply to comment #1)
> This is upliftable into playdoh

Indeed, it went straight to commonware.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.