Closed Bug 1899894 Opened 1 year ago Closed 1 year ago

Remove debug statements that require customized #define

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(1 file)

See the patch for details.

The debug statements all require customized #define to enable. I don't feel it
is useful to leave code that is not compiled in the default debug build.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

(In reply to Ting-Yu Lin [:TYLin] (PDT, UTC-7) from comment #1)

The debug statements all require customized #define to enable. I don't feel it
is useful to leave code that is not compiled in the default debug build.

While I don't have any objection to this patch, in general I think that it can be quite useful to have code like this.

Two examples that I use

https://searchfox.org/mozilla-central/rev/fc76676f61ee37b4c5420649cad6677164a29405/gfx/layers/wr/WebRenderCommandBuilder.cpp#51
https://searchfox.org/mozilla-central/rev/fc76676f61ee37b4c5420649cad6677164a29405/layout/painting/RetainedDisplayListBuilder.cpp#867

I totally agree logging is useful, and I use FLEX_LOG whenever I investigate flexbox bugs.

I'm just curious as to why GP and CRR_LOG require a customized build to enable rather than being modernized as MOZ_LOG that can be turned on easily via flipping a pref.

They produce a lot of output.

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6150d2dc57c4 Remove debug statements that require customized #define. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: