Closed Bug 942154 Opened 11 years ago Closed 2 years ago

[Session Restore] Use normal console logging instead of debug()

Categories

(Firefox :: Session Restore, defect)

defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: Yoric, Assigned: victoria.o.ajala, Mentored)

Details

(Whiteboard: [lang=js])

Attachments

(1 file)

That's more powerful and more useful for debugging, plus it's used in large parts of m-c, so let's reuse it.
Severity: normal → S3

https://searchfox.org/mozilla-central/search?q=symbol%3A%23debug&path=sessionstore%2F&case=false&regexp=false

There's two definitions of debug in session restore, they both directly log to the console.

Looking at the three cases where they are called, I think we could replace the two calls in ContentSessionStore.sys.mjs with console.error as they are more like error messages, and the SessionHistory.sys.mjs case could probably be console.warn.

Mentor: standard8
Summary: [Session Restore] Use Console.jsm instead/inside of debug() → [Session Restore] Use normal console logging instead of debug()
Whiteboard: [lang=js]

Hi @standard8! Can I work on this ?

Assignee: nobody → victoria.o.ajala
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/07112703f3aa Use normal console logging instead of debug(). r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: