Closed
Bug 1302378
Opened 9 years ago
Closed 9 years ago
Add more v4 debug message
Categories
(Toolkit :: Safe Browsing, defect, P3)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: hchang, Assigned: hchang)
Details
Attachments
(1 file)
No description provided.
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → hchang
| Comment hidden (mozreview-request) |
Comment 2•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8790635 [details]
Bug 1302378 - Add v4 debug message. .
https://reviewboard.mozilla.org/r/78348/#review77094
::: toolkit/components/url-classifier/content/listmanager.js:410
(Diff revision 1)
> });
>
> let urlUtils = Cc["@mozilla.org/url-classifier/utils;1"]
> .getService(Ci.nsIUrlClassifierUtils);
> +
> + log("makeUpdateRequestV4 with " + JSON.stringify(tableArray) +
nit: to mirror the other debug message for V2, we could change the message to
log("update request (V4): " + JSON.stringify(tableArray) + " and " + JSON.stringify(stateArray));
::: toolkit/components/url-classifier/content/listmanager.js:440
(Diff revision 1)
> }
>
> streamerMap.isPostRequest = true;
> }
>
> log("update request: " + JSON.stringify(streamerMap, undefined, 2) + "\n");
nit: we could rename this one to include the version number too
log("update request (V2): " + JSON.stringify(streamerMap, undefined, 2) + "\n");
::: toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.cpp:206
(Diff revision 1)
> LOG(("(pre) Fetching update from %s\n", PromiseFlatCString(aUpdateUrl).get()));
>
> nsCString updateUrl(aUpdateUrl);
> if (!aIsPostRequest) {
> updateUrl.AppendPrintf("&$req=%s", nsCString(aRequestPayload).get());
> + LOG(("Appended V4 UpdateURL: %s", updateUrl.get()));
nit: "Full V4 UpdateURL" is a bit clearer than "Appended V4 UpdateURL"
Attachment #8790635 -
Flags: review?(francois) → review+
Comment 3•9 years ago
|
||
(In reply to François Marier [:francois] from comment #2)
> ::: toolkit/components/url-classifier/content/listmanager.js:410
> (Diff revision 1)
> > });
> >
> > let urlUtils = Cc["@mozilla.org/url-classifier/utils;1"]
> > .getService(Ci.nsIUrlClassifierUtils);
> > +
> > + log("makeUpdateRequestV4 with " + JSON.stringify(tableArray) +
>
> nit: to mirror the other debug message for V2, we could change the message to
>
> log("update request (V4): " + JSON.stringify(tableArray) + " and " +
> JSON.stringify(stateArray));
>
> ::: toolkit/components/url-classifier/content/listmanager.js:440
> (Diff revision 1)
> > }
> >
> > streamerMap.isPostRequest = true;
> > }
> >
> > log("update request: " + JSON.stringify(streamerMap, undefined, 2) + "\n");
>
> nit: we could rename this one to include the version number too
>
> log("update request (V2): " + JSON.stringify(streamerMap, undefined, 2)
> + "\n");
>
Ignore these two comments, I got confused with the indentation. The second message is not V2-specific, it shows up on both.
The original log() message you have is all good.
| Assignee | ||
Comment 4•9 years ago
|
||
Thanks for the review :)
To be honest, I don't know if these debug messages are helpful. The message I added in the patch are dedicated to the input and output of the request payload given that the error message from server said it's something like bad base64 encoded data.
Anyways, if you don't have any concern landing this patch I'll land it as soon as possible! Thanks!
Comment 5•9 years ago
|
||
(In reply to Henry Chang [:henry][:hchang] from comment #4)
> Anyways, if you don't have any concern landing this patch I'll land it as
> soon as possible! Thanks!
Ship it! :)
Updated•9 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: #sbv4-m2
| Assignee | ||
Comment 6•9 years ago
|
||
I now feel like these debug message doesn't seem to be helpful after fixing some bugs. Just remove from the milestone but leave it open, sit down and figure out what kind of debug message would help.
| Assignee | ||
Updated•9 years ago
|
Whiteboard: #sbv4-m2
Updated•9 years ago
|
Priority: P2 → P3
Comment 7•9 years ago
|
||
(In reply to Henry Chang [:henry][:hchang] from comment #6)
> I now feel like these debug message doesn't seem to be helpful after fixing
> some bugs. Just remove from the milestone but leave it open, sit down and
> figure out what kind of debug message would help.
If you think these messages might be helpful, let's land the patch, otherwise, let's close the bug and mark it as wontfix. We can always create a new bug later if we think of new debug messages that might be helpful.
Flags: needinfo?(hchang)
| Assignee | ||
Comment 8•9 years ago
|
||
I don't think the message I add in the patch very helpful (at least so far :p ). Mark WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(hchang)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•