Closed Bug 1927764 Opened 1 year ago Closed 1 year ago

Text-Fragments: Use MOZ_LOG_FMT for log messages

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: jjaschke, Assigned: r.kossel, Mentored)

Details

(Keywords: good-first-bug)

Attachments

(2 files)

Bug 1717448 introduced std::fmt into our code base. Using it for log messages should make the log messages less verbose and ugly.

Mentor: jjaschke
Keywords: good-first-bug

The Text Fragments code (especially the FragmentDirective class and the TextDirectiveUtil helper) make heavy use of logging.

This is currently done using a specialization of the MOZ_LOG macro.

Bug 1717448 introduced logging using std::format (documentation, example patch).

The specialized TEXT_FRAGMENT_LOG macros should be adapted to make use of MOZ_LOG_FMT, as well as all usages.

Assignee: nobody → r.kossel
Status: NEW → ASSIGNED
Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0289dfc64fce part 1: change logger macros of TextFragment to use MOZ_LOG_FMT. r=jjaschke https://hg.mozilla.org/integration/autoland/rev/a62ffaa65df2 part 2: rename `sFragmentDirectiveLog` to `gFragmentDirectiveLog`. r=jjaschke
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: