Closed
Bug 1132774
Opened 9 years ago
Closed 9 years ago
[B2G][SMS] Enable DEBUG Flag in SmsService if the default value of "ril.debugging.enabled" is true.
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(tracking-b2g:backlog, firefox39 fixed)
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: bevis, Assigned: freesamael)
Details
(Whiteboard: [good first bug])
Attachments
(1 file, 1 obsolete file)
Similar to MmsService, we should enable the DEBUG flag in SmsService.js if the default value of "ril.debugging.enabled" is set to true. After running the script of enable_debug_flags.sh in https://github.com/bevis-tseng/Debug_Tools we shall be able to see the debug message in SmsService.js when sending/receiving SMS.
Reporter | ||
Comment 1•9 years ago
|
||
Hi Samael, Would you like to take this bug to warm up? :)
Flags: needinfo?(sawang)
Whiteboard: [good first bug]
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → sawang
Flags: needinfo?(sawang)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8569026 -
Flags: review?(btseng)
Assignee | ||
Comment 3•9 years ago
|
||
try server result https://treeherder.mozilla.org/#/jobs?repo=try&revision=eab6f30acf6e
Reporter | ||
Comment 4•9 years ago
|
||
Comment on attachment 8569026 [details] [diff] [review] bug-1132774-fix.patch Review of attachment 8569026 [details] [diff] [review]: ----------------------------------------------------------------- Please see my suggestion inline. Thanks! ::: dom/mobilemessage/gonk/SmsService.js @@ +100,5 @@ > +try { > + let debugPref = Services.prefs.getBoolPref(kPrefRilDebuggingEnabled); > + DEBUG = DEBUG || debugPref; > +} catch (e) {} > + Similar logic is available in SmsService._updateDebugFlag(). I suggest to reuse this in the constructor of SmsService instead. BTW, please revise the following line in _updateDebugFlag() DEBUG = RIL.DEBUG_RIL || Services.prefs.getBoolPref(kPrefRilDebuggingEnabled); to DEBUG = DEBUG || Services.prefs.getBoolPref(kPrefRilDebuggingEnabled); because DEBUG has already been initialized with RIL.DEBUG_RIL at declaration. @@ +105,1 @@ > function SmsService() { this._updateDebugFlag();
Attachment #8569026 -
Flags: review?(btseng)
Assignee | ||
Comment 5•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8569026 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8571170 -
Flags: review?(btseng)
Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8571170 [details] [diff] [review] [B2G][SMS] Enable DEBUG Flag in SmsService if the default value of "ril.debugging.enabled" is true. r=btseng Review of attachment 8571170 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. Please set r=me in the patch description and add "checkin-needed" in the field of |keywords| after you got positive result from try server. Thanks!
Attachment #8571170 -
Flags: review?(btseng) → review+
Assignee | ||
Comment 7•9 years ago
|
||
try server result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=4276892baad2
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
blocking-b2g: --- → backlog
Assignee | ||
Updated•9 years ago
|
Attachment #8571170 -
Attachment description: [B2G][SMS] Enable DEBUG Flag in SmsService if the default value of "ril.debugging.enabled" is true → [B2G][SMS] Enable DEBUG Flag in SmsService if the default value of "ril.debugging.enabled" is true. r=btseng
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/95443c5c35fd
Keywords: checkin-needed
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/95443c5c35fd
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S7 (6mar)
Updated•9 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•