Open Bug 1992874 Opened 16 days ago

[wpt-sync] Sync PR 55267 - [mozlog] Call LogRecord.getMessage

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 55267 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/55267
Details from upstream follow.

Sam Sneddon <gsnedders@apple.com> wrote:

[mozlog] Call LogRecord.getMessage

Currently, we only pass the message itself into the structured handler — however, this loses us any arguments passed to the logger. Instead, use getMessage() which handles these.

Note we should still aim to do better than this longer term — we still lose most of the context the LogRecord has.

You need to log in before you can comment on or make changes to this bug.