Closed Bug 1711181 Opened 5 years ago Closed 5 years ago

Introduce QM_OR_ELSE_LOG and use it in places where QM_OR_ELSE_WARN would spam the reports

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(4 files)

This is a follow-up for bug 1701346. Originally, we converted QM_OR_ELSE_WARN back to ordinary orElse, but we now see that it's better to use macros in all cases. We just need a new macro that doesn't report to console/browser console/telemetry.

This is more consistent with other cases where we either use QM_OR_ELSE_WARN or
QM_OR_ELSE_NOTE. We will later change some uses of QM_OR_ELSE_LOG to
QM_OR_ELSE_LOG_IF. The switch from custom OrElseIf to Result::orElseIf will be
easier when we don't use OrElseIf directly.

Keywords: leave-open
Keywords: leave-open
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f0fff2a8865 Add QM_OR_ELSE_LOG macro; r=dom-storage-reviewers,jstutte https://hg.mozilla.org/integration/autoland/rev/0c5cdbcd703a Change uses of ordinary orElse to QM_OR_ELSE_LOG; r=dom-storage-reviewers,jstutte https://hg.mozilla.org/integration/autoland/rev/f85776cea45d Use QM_OR_ELSE_LOG in remaining places where QM_OR_ELSE_WARN would spam the reports; r=dom-storage-reviewers,jstutte https://hg.mozilla.org/integration/autoland/rev/03de354b3a73 Add explanatory comments for some special uses of QM_OR_ELSE_WARN; r=dom-storage-reviewers,jstutte
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: