Closed Bug 1145192 Opened 10 years ago Closed 10 years ago

GeckoProfile spamming Android log with: Fetching profile: '', 'null'

Categories

(Firefox for Android Graveyard :: Data Providers, defect)

38 Branch
All
Android
defect
Not set
normal

Tracking

(firefox38 affected, firefox39 ?, firefox42 fixed, fennec+)

RESOLVED FIXED
Firefox 42
Tracking Status
firefox38 --- affected
firefox39 --- ?
firefox42 --- fixed
fennec + ---

People

(Reporter: mbrubeck, Assigned: droeh, Mentored)

References

Details

(Keywords: regression, Whiteboard: [lang=java])

Attachments

(1 file, 3 obsolete files)

Aurora 38 (running on Nexus 4, Android 5.0) is writing this line the logs several times per second: V/GeckoProfile(11747): Fetching profile: '', 'null' Possibly related to bug 1077590, which added this log line.
Let's remove or hide this output based on the logging state.
Mentor: mark.finkle, rnewman
tracking-fennec: ? → +
Whiteboard: [lang=java]
Depends on: 1169419
Assignee: nobody → droeh
Attached patch Proposed patch (obsolete) — Splinter Review
Proposed patch; this just skips the logging when profileName is an empty string and profileDir is null.
Attached patch Proposed patch (updated) (obsolete) — Splinter Review
Updates previously proposed patch, moving logging statement to an else clause a few lines down.
Attachment #8628335 - Attachment is obsolete: true
Attachment #8628484 - Flags: review?(snorp)
Comment on attachment 8628484 [details] [diff] [review] Proposed patch (updated) Review of attachment 8628484 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/GeckoProfile.java @@ +253,5 @@ > // We're unable to do anything sane here. > throw new RuntimeException(e); > } > } > + else { Put the else on the same line as the closing brace above, looks good otherwise.
Attachment #8628484 - Flags: review?(snorp) → review-
Attached patch Proposed patch (updated) (obsolete) — Splinter Review
Stylistic fix
Attachment #8628484 - Attachment is obsolete: true
Attachment #8628489 - Flags: review?(snorp)
Attachment #8628489 - Flags: review?(snorp) → review+
Comment on attachment 8628489 [details] [diff] [review] Proposed patch (updated) Review of attachment 8628489 [details] [diff] [review]: ----------------------------------------------------------------- Oops. You need to fix the commit message. Something like: Bug 1145192 - Don't spam the logs when retrieving the profile on Android r=snorp The message should say what the patch does, and the r=snorp means it was reviewed (and approved) by me.
Attachment #8628489 - Flags: review+ → review-
Fixed commit message
Attachment #8628489 - Attachment is obsolete: true
Attachment #8628531 - Flags: review?(snorp)
Attachment #8628531 - Flags: review?(snorp) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: