Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Issue 2240053002: Replace WTF_LOG() with NETWORK_DVLOG() or RESOURCE_LOADING_DVLOG(). (Closed)

Created:
4 years, 4 months ago by tkent
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, gavinp+loader_chromium.org, haraken, Nate Chapin, loading-reviews+fetch_chromium.org, loading-reviews_chromium.org, tyoshino+watch_chromium.org, yhirano+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace WTF_LOG() with NETWORK_DVLOG() or RESOURCE_LOADING_DVLOG(). WTF_LOG() is deprecated. Like crrev.com/411499, this CL introduce NETWORK_DVLOG(level), which shows logs with --vmodule=NetworkLog=N, and RESOURCE_LOADING_DVLOG(level), which shows logs with --vmodule=ResourceLoadingLog=N, and replace WTF_LOG(Network, ...) and WTF_LOG(ResourceLoading, ...). This CL also adds a stream printer for WTF::CString. This CL doesn't affect production. BUG=596760 Committed: https://crrev.com/b300917ad36438a8bcf700980f8991bf55cf2581 Cr-Commit-Position: refs/heads/master@{#411588}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add files #

Total comments: 5

Patch Set 3 : apply review comments, and add CString printer #

Total comments: 5

Patch Set 4 : sstream, EXPECT_STREQ #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -100 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 8 chunks +9 lines, -9 lines 2 comments Download
A third_party/WebKit/Source/core/fetch/ResourceLoadingLog.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageLoader.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 6 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 20 chunks +25 lines, -20 lines 1 comment Download
M third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp View 1 2 15 chunks +17 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp View 1 2 19 chunks +23 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/Logging.h View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/Logging.cpp View 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/NetworkLog.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/CString.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/CString.cpp View 1 2 2 chunks +44 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/CStringTest.cpp View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
tkent
tyoshino@, would you review this please? https://codereview.chromium.org/2240053002/diff/1/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp File third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp (right): https://codereview.chromium.org/2240053002/diff/1/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp#newcode287 third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp:287: NETWORK_DVLOG(1) << "WebSocket ...
4 years, 4 months ago (2016-08-12 04:05:46 UTC) #4
tkent
oops, forgot to add new files.
4 years, 4 months ago (2016-08-12 04:07:01 UTC) #7
tkent
Now this is ready for review.
4 years, 4 months ago (2016-08-12 04:48:26 UTC) #11
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/2240053002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2240053002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode170 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:170: RESOURCE_LOADING_DVLOG(1) << "MemoryCache::add Added " << resource->url().getString() << ...
4 years, 4 months ago (2016-08-12 04:50:49 UTC) #12
tyoshino (SeeGerritForStatus)
Oh, I'm not sure files I looked at are all in ps2. I'll check later ...
4 years, 4 months ago (2016-08-12 04:52:28 UTC) #13
tkent
Uploaded a new patch set. https://codereview.chromium.org/2240053002/diff/20001/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp File third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp (right): https://codereview.chromium.org/2240053002/diff/20001/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp#newcode397 third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp:397: NETWORK_DVLOG(1) << "WebSocket " ...
4 years, 4 months ago (2016-08-12 05:37:18 UTC) #16
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/2240053002/diff/1/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp File third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp (right): https://codereview.chromium.org/2240053002/diff/1/third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp#newcode287 third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp:287: NETWORK_DVLOG(1) << "WebSocket " << this << " ...
4 years, 4 months ago (2016-08-12 05:57:38 UTC) #17
tkent
https://codereview.chromium.org/2240053002/diff/40001/third_party/WebKit/Source/wtf/text/CStringTest.cpp File third_party/WebKit/Source/wtf/text/CStringTest.cpp (right): https://codereview.chromium.org/2240053002/diff/40001/third_party/WebKit/Source/wtf/text/CStringTest.cpp#newcode28 third_party/WebKit/Source/wtf/text/CStringTest.cpp:28: #include "testing/gtest/include/gtest/gtest.h" On 2016/08/12 at 05:57:38, tyoshino wrote: > ...
4 years, 4 months ago (2016-08-12 06:34:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2240053002/60001
4 years, 4 months ago (2016-08-12 06:35:27 UTC) #21
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2240053002/diff/40001/third_party/WebKit/Source/wtf/text/CStringTest.cpp File third_party/WebKit/Source/wtf/text/CStringTest.cpp (right): https://codereview.chromium.org/2240053002/diff/40001/third_party/WebKit/Source/wtf/text/CStringTest.cpp#newcode217 third_party/WebKit/Source/wtf/text/CStringTest.cpp:217: EXPECT_EQ(CString("\"\\xFF\\x00\\x01\""), printedString(CString("\xff\0\x01", 3))); On 2016/08/12 06:34:54, tkent wrote: > ...
4 years, 4 months ago (2016-08-12 06:38:31 UTC) #23
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2240053002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2240053002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode594 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:594: RESOURCE_LOADING_DVLOG(1) << "Loading Resource for " << request.resourceRequest().url().elidedString(); oh, ...
4 years, 4 months ago (2016-08-12 07:32:19 UTC) #24
tkent
https://codereview.chromium.org/2240053002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2240053002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode594 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:594: RESOURCE_LOADING_DVLOG(1) << "Loading Resource for " << request.resourceRequest().url().elidedString(); On ...
4 years, 4 months ago (2016-08-12 07:43:45 UTC) #25
tyoshino (SeeGerritForStatus)
4 years, 4 months ago (2016-08-12 07:56:31 UTC) #26
tyoshino (SeeGerritForStatus)
On 2016/08/12 07:43:45, unavailable_until_Aug17 wrote: > https://codereview.chromium.org/2240053002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp > File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): > > https://codereview.chromium.org/2240053002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode594 > ...
4 years, 4 months ago (2016-08-12 07:57:06 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-12 10:05:28 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 10:07:06 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b300917ad36438a8bcf700980f8991bf55cf2581
Cr-Commit-Position: refs/heads/master@{#411588}

Powered by Google App Engine
This is Rietveld 408576698