Closed
Bug 1239212
Opened 9 years ago
Closed 9 years ago
NSPR_LOG_MODULE logs no longer include line return
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: jya, Assigned: erahm)
References
Details
(Keywords: regression)
Attachments
(1 file)
2.33 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Note sure what the right component would be..
Start a local build with something like:
NSPR_LOG_MODULES=PlatformDecoderModule:5,MediaFormatReader:5 ./mach run
output:
[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::ScheduleUpdate: SchedulingUpdate(Video)[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::ScheduleUpdate: SchedulingUpdate(Audio)[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Processing update for Video[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Update(Video) ni=0 no=0 ie=0, in:0 out:0 qs=0 pending:0 waiting:0 ahead:1 sid:4294967295[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: No need for additional input (pending:0)[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Processing update for Audio[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Update(Audio) ni=0 no=0 ie=0, in:0 out:0 qs=0 pending:0 waiting:0 ahead:1 sid:4294967295[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: No need for additional input (pending:0)[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::RequestAudioData: [0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::ScheduleUpdate: SchedulingUpdate(Audio)[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::RequestVideoData: RequestVideoData(0, 0)[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::ScheduleUpdate: SchedulingUpdate(Video)[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Processing update for Audio[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Update(Audio) ni=1 no=1 ie=0, in:0 out:0 qs=0 pending:0 waiting:0 ahead:0 sid:4294967295[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::RequestDemuxSamples: Requesting extra demux Audio[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Processing update for Video[0x18af53560]: V/MediaFormatReader MediaFormatReader(11907c000)::Update: Update(Video) ni=1 no=1 ie=0, in:0
No more carriage return, makes the log unreadable. seems to be related to the extra D/ or V/ at the start of the log line (this is new)
Reporter | ||
Comment 1•9 years ago
|
||
bisect tells me it's bug 1174972 the culprit...
https://hg.mozilla.org/integration/mozilla-inbound/rev/2aee7dd852a26df0222160c6220adc68014cb4ef
Depends on: 1174972
Keywords: regression
Reporter | ||
Updated•9 years ago
|
Component: General → XPCOM
Reporter | ||
Comment 2•9 years ago
|
||
There are no new lines *at all*: it's a single giant long single line.
Assignee | ||
Comment 3•9 years ago
|
||
PR_LogPrint had a feature of adding a newline if not present [1] that did not get included in the the new version. So for loggers that already include a newline in their messages it's not an issue, but for loggers that do not it definitely is.
To reach parity we need to append a newline to all messages.
[1] https://dxr.mozilla.org/mozilla-central/rev/e790bba372f14241addda469a4bdb7ab00786ab3/nsprpub/pr/src/io/prlog.c#493-498
Comment 4•9 years ago
|
||
(In reply to Eric Rahm [:erahm] from comment #3)
> To reach parity we need to append a newline to all messages.
Even if the message already has a newline? That's also messy.
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #4)
> (In reply to Eric Rahm [:erahm] from comment #3)
> > To reach parity we need to append a newline to all messages.
>
> Even if the message already has a newline? That's also messy.
Sorry, yes we need to make sure every message ends in a newline, but only add one to those that are missing it.
Assignee | ||
Comment 6•9 years ago
|
||
Tested against the provided STR on youtube.com as well as against 'nsThread' which provides newlines in its messages.
Attachment #8707546 -
Flags: review?(nfroyd)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → erahm
Status: NEW → ASSIGNED
Comment 7•9 years ago
|
||
Comment on attachment 8707546 [details] [diff] [review]
Append missing newlines to log messages
Review of attachment 8707546 [details] [diff] [review]:
-----------------------------------------------------------------
Whoops! Sorry for not catching that in review.
Attachment #8707546 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8ac5539028537a7bd623cbe05458b8b87ec319a1
Bug 1239212 - Append missing newlines to log messages. r=froydnj
Comment 9•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•