Bug 161771 - Enhance Network logging
Summary: Enhance Network logging
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Rollin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-08 16:56 PDT by Keith Rollin
Modified: 2016-09-12 12:01 PDT (History)
5 users (show)

See Also:


Attachments
Patch (22.55 KB, patch)
2016-09-09 11:00 PDT, Keith Rollin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Rollin 2016-09-08 16:56:13 PDT
The initial logging used to track progress through the resource-downloading operation is a bit scattered. It would be better for it to conform to some sort of standard. By doing this, the logging can be more easily tracked and parsed (possibly by tools that try to extract important information from the logging. 

Change the logging to generally follow the format:

<this> - <class>::<method>: <message> (<data>)

<this>: Helps track activity for one particular instances, such as the downloading of one particular resource.
<class>::<method>: Helps identify what stage of the operation we are in.
<message>: Some arbitrary message, useful if a single method logs multiple times. Optional.
<data>: Handy data to help us understand what's going on. Optional.

For example:

0x110bf5000 - WebLoaderStrategy::scheduleLoad: Resource will be scheduled with the NetworkProcess (priority = 2, pageID = 6, frameID = 1, WebResourceLoader = 0x113858288)

0x113858288 - WebResourceLoader::didReceiveData: (size = 16384)

0x113858288 - WebResourceLoader::didFinishResourceLoad
Comment 1 Keith Rollin 2016-09-09 11:00:33 PDT
Created attachment 288415 [details]
Patch
Comment 2 WebKit Commit Bot 2016-09-12 12:01:37 PDT
Comment on attachment 288415 [details]
Patch

Clearing flags on attachment: 288415

Committed r205817: <http://trac.webkit.org/changeset/205817>
Comment 3 WebKit Commit Bot 2016-09-12 12:01:41 PDT
All reviewed patches have been landed.  Closing bug.