Closed Bug 841899 Opened 11 years ago Closed 11 years ago

Remove stream-based logging from Signaling code

Categories

(Core :: WebRTC: Signaling, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: ehugg, Assigned: ehugg)

Details

(Whiteboard: [WebRTC], [blocking-webrtc-], [qa-])

Attachments

(1 file, 2 obsolete files)

The signaling code has some stream-based logging calls such as CSFLogDebugS which  are currently only active in Debug builds.  This can be confusing when trying to analyze logs from Release builds.  We need to replace all of these with their printf-style equivalents, e.g. CSFLogDebug.
Assignee: nobody → ethanhugg
Severity: normal → minor
Priority: -- → P3
Whiteboard: [WebRTC], [blocking-webrtc-]
Attachment #716231 - Attachment is obsolete: true
Attachment #716245 - Flags: review?(rjesup)
Attachment #716245 - Flags: review?(rjesup) → review+
Comment on attachment 716606 [details] [diff] [review]
Remove stream-based logging from Signaling code


Re-based patch on latest M-I because of merge conflicts with Bug 841641

Bringing forward r+ from Jesup

Try is here:

https://tbpl.mozilla.org/?tree=Try&rev=cdc2c22a6901
Attachment #716606 - Flags: review+
Attachment #716245 - Attachment is obsolete: true
Try run with -p all instead of -p none...

https://tbpl.mozilla.org/?tree=Try&rev=b8510aa237e7
https://hg.mozilla.org/mozilla-central/rev/be1f3e460255
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Whiteboard: [WebRTC], [blocking-webrtc-] → [WebRTC], [blocking-webrtc-], [qa-]
What was gained here? Varargs are prone to error, so this seems like a step backwards.
>What was gained here? Varargs are prone to error, so this seems like a step >backwards.

Streams are not allowed in Mozilla production code.  So all of these instances that were just changed were #ifdef DEBUG which meant that some logging was on opt builds and some not.   Now it should be less confusing when trying to debug an opt build.

I agree with you of course that the streams versions would've been better to use and less prone to error in all of this CPP code and that's why they existed, but streams bad because Mozilla.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: