Bug 162233

Summary: Reduce logging from WebResourceLoader::didReceiveData
Product: WebKit Reporter: Keith Rollin <krollin>
Component: WebKit2Assignee: Keith Rollin <krollin>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, koivisto
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 162235    
Attachments:
Description Flags
Patch
none
Patch none

Description Keith Rollin 2016-09-19 14:16:56 PDT
Reduce the amount of logging performed by WebResourceLoader::didReceiveData when downloading resources -- only log once even if called multiple times for a single resource.
Comment 1 Keith Rollin 2016-09-19 14:38:05 PDT
Created attachment 289259 [details]
Patch
Comment 2 Keith Rollin 2016-09-19 14:52:59 PDT
Created attachment 289262 [details]
Patch
Comment 3 Antti Koivisto 2016-09-19 15:29:06 PDT
Comment on attachment 289262 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=289262&action=review

> Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp:138
> +        RELEASE_LOG_IF_ALLOWED("didReceiveData: (size = %lu)", data.size());

Should the message indicate that this was the first data received? It might be confusing if it appears that there was nothing more.
Comment 4 Keith Rollin 2016-09-19 15:33:20 PDT
(In reply to comment #3)
> Comment on attachment 289262 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=289262&action=review
> 
> > Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp:138
> > +        RELEASE_LOG_IF_ALLOWED("didReceiveData: (size = %lu)", data.size());
> 
> Should the message indicate that this was the first data received? It might
> be confusing if it appears that there was nothing more.

This will be addressed in Bug 162235.
Comment 5 WebKit Commit Bot 2016-09-19 15:55:24 PDT
Comment on attachment 289262 [details]
Patch

Clearing flags on attachment: 289262

Committed r206123: <http://trac.webkit.org/changeset/206123>
Comment 6 WebKit Commit Bot 2016-09-19 15:55:29 PDT
All reviewed patches have been landed.  Closing bug.