Closed Bug 1118675 Opened 9 years ago Closed 6 years ago

Improve NetworkService debugging message

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: edgar, Unassigned)

References

Details

Attachments

(3 files)

When reviewing bug 973543 and bug 1104664, I found the logging in NetworkService isn't clear enough for debugging.

In this bug, I would like to improve it.

e.g.

- Add logging when sending message to net_worker, http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/NetworkService.js#94-107

- The request id assignment looks a little strange, http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/NetworkService.js#99-103
IMO, we should always assign a valid id no matter the callback is available or not. Otherwise, we will see a lot of request and response with id=0, and it's hard to map them together.

- The response always contains a lot attribute because we assign every attribute with a default value in NetworkOptions.webidl. How about make them all optional and only construct it when it is really needed, though I don't know if it is possible.
Blocks: 904514
Depends on: 1123328
Depends on: 1172307
Depends on: 977474
Depends on: 1041397
[Tracking Requested - why for this release]:
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: