Bug 135202

Summary: [Curl] Enable file logging.
Product: WebKit Reporter: peavo
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, alex.christensen, bfulgham, buildbot, commit-queue, galpeter, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2
none
Patch none

Description peavo 2014-07-23 10:55:19 PDT
The Curl api offers the possibility to write log messages to file. It would be nice to enable this for debugging purposes.
Comment 1 peavo 2014-07-23 10:58:35 PDT
Created attachment 235360 [details]
Patch
Comment 2 Build Bot 2014-07-23 12:01:42 PDT
Comment on attachment 235360 [details]
Patch

Attachment 235360 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5118260223672320

New failing tests:
media/track/add-and-remove-track.html
Comment 3 Build Bot 2014-07-23 12:01:45 PDT
Created attachment 235365 [details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 4 Alex Christensen 2014-07-23 14:25:56 PDT
Comment on attachment 235360 [details]
Patch

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

Otherwise this looks good

> Source/WebCore/platform/network/curl/ResourceHandleManager.cpp:237
> +    , m_logFile(0)

This should be nullptr.
Comment 5 Alex Christensen 2014-07-23 14:47:33 PDT
Is there any reason why we would want there to be no log for a debug build?  Does it slow it down too much?  I think falling back to writing a log to the current working directory would make the logs easier to find
Comment 6 peavo 2014-07-24 11:50:42 PDT
Created attachment 235439 [details]
Patch
Comment 7 Alex Christensen 2014-07-24 11:51:50 PDT
Comment on attachment 235439 [details]
Patch

r=me
Comment 8 peavo 2014-07-24 11:52:46 PDT
(In reply to comment #7)
> (From update of attachment 235439 [details])
> r=me

Thanks for reviewing :)
Comment 9 peavo 2014-07-24 11:55:04 PDT
(In reply to comment #5)
> Is there any reason why we would want there to be no log for a debug build?  Does it slow it down too much?  I think falling back to writing a log to the current working directory would make the logs easier to find

The logging is pretty verbose. I believe it will slow things down, so this patch only enables it for debug builds.
Comment 10 WebKit Commit Bot 2014-07-24 12:24:12 PDT
Comment on attachment 235439 [details]
Patch

Clearing flags on attachment: 235439

Committed r171513: <http://trac.webkit.org/changeset/171513>
Comment 11 WebKit Commit Bot 2014-07-24 12:24:16 PDT
All reviewed patches have been landed.  Closing bug.