Closed Bug 625242 Opened 13 years ago Closed 13 years ago

cef logging not generally taking a username

Categories

(Cloud Services :: Server: Core, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: telliott, Assigned: telliott)

References

Details

Attachments

(4 files, 2 obsolete files)

I noticed while reviewing some other code that the usual line for cef logging doesn't take a username. Ignoring the fact that we should probably have that be a normal parameter (since 90% of the time we'll want it), there are several places in the python that probably need to add {'suser': username} to the **params
Assignee: nobody → tarek
Let's make it a normal parameter then, defaulting to None.
Blocks: 608039
Attached patch Added the suser value (obsolete) — Splinter Review
Attachment #504480 - Flags: review?(telliott)
should we put username in front of signature? I'm far more likely to put in a username than a signature.
Yeah sure. 

Also, maybe we should rename it to log_cef() now that it's used in other spots than log failures. It will be more painful to do so once we have more apps.
Sure, that seems fine. We could even leave in the log_failure function as a pointer to log_cef for a bit to ensure nothing breaks.
Since nothing using server-core is in production yet, I think having a deprecation process for that name is unnecessary: we can rename it everywhere with no impact but the need to update it in all stage environment -- and gives a heads-up to JR about this.
Revised version
Attachment #504480 - Attachment is obsolete: true
Attachment #505372 - Flags: review?(telliott)
Attachment #504480 - Flags: review?(telliott)
Attachment #505374 - Flags: review?(telliott) → review+
Attachment #505379 - Flags: review?(telliott) → review+
Attachment #505372 - Attachment is obsolete: true
Attachment #506333 - Flags: review?(telliott)
Attachment #505372 - Flags: review?(telliott)
Comment on attachment 506333 [details] [diff] [review]
Added the suser value and renamed the function

Looks good. I'll attach the account portal changes here, too
Attachment #506333 - Flags: review?(telliott) → review+
Attachment #506485 - Flags: review?(tarek)
Attachment #506485 - Flags: review?(tarek) → review+
Assignee: tarek → telliott
Done on account-portal in http://hg.mozilla.org/services/account-portal/rev/1a2b8dfb04a6
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: