summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_channel.cc
diff options
context:
space:
mode:
authorricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-14 06:22:25 +0000
committerricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-14 06:22:25 +0000
commitb8393cc08bd9c771b7037436d70aee539d0f429d (patch)
treed8649bf21c17b88c59f0c8a74b849424d230debb /net/websockets/websocket_channel.cc
parent91e0b13a182ab621108390c215be560103d3eb00 (diff)
downloadchromium_src-b8393cc08bd9c771b7037436d70aee539d0f429d.zip
chromium_src-b8393cc08bd9c771b7037436d70aee539d0f429d.tar.gz
chromium_src-b8393cc08bd9c771b7037436d70aee539d0f429d.tar.bz2
Stop using VLOG() in WebSocketChannel.
Use DVLOG() instead so that the messages are not included in release builds. BUG= TEST=net_unittests Review URL: https://codereview.chromium.org/225673004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/websockets/websocket_channel.cc')
-rw-r--r--net/websockets/websocket_channel.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/websockets/websocket_channel.cc b/net/websockets/websocket_channel.cc
index 25df3a4..156fac3 100644
--- a/net/websockets/websocket_channel.cc
+++ b/net/websockets/websocket_channel.cc
@@ -341,8 +341,8 @@ void WebSocketChannel::SendFrame(bool fin,
return;
}
if (InClosingState()) {
- VLOG(1) << "SendFrame called in state " << state_
- << ". This may be a bug, or a harmless race.";
+ DVLOG(1) << "SendFrame called in state " << state_
+ << ". This may be a bug, or a harmless race.";
return;
}
if (state_ != CONNECTED) {
@@ -440,8 +440,8 @@ void WebSocketChannel::SendFlowControl(int64 quota) {
void WebSocketChannel::StartClosingHandshake(uint16 code,
const std::string& reason) {
if (InClosingState()) {
- VLOG(1) << "StartClosingHandshake called in state " << state_
- << ". This may be a bug, or a harmless race.";
+ DVLOG(1) << "StartClosingHandshake called in state " << state_
+ << ". This may be a bug, or a harmless race.";
return;
}
if (state_ == CONNECTING) {
@@ -766,15 +766,15 @@ ChannelState WebSocketChannel::HandleFrameByState(
return HandleDataFrame(opcode, final, data_buffer, size);
case WebSocketFrameHeader::kOpCodePing:
- VLOG(1) << "Got Ping of size " << size;
+ DVLOG(1) << "Got Ping of size " << size;
if (state_ == CONNECTED)
return SendFrameFromIOBuffer(
true, WebSocketFrameHeader::kOpCodePong, data_buffer, size);
- VLOG(3) << "Ignored ping in state " << state_;
+ DVLOG(3) << "Ignored ping in state " << state_;
return CHANNEL_ALIVE;
case WebSocketFrameHeader::kOpCodePong:
- VLOG(1) << "Got Pong of size " << size;
+ DVLOG(1) << "Got Pong of size " << size;
// There is no need to do anything with pong messages.
return CHANNEL_ALIVE;
@@ -791,7 +791,7 @@ ChannelState WebSocketChannel::HandleFrameByState(
}
// TODO(ricea): Find a way to safely log the message from the close
// message (escape control codes and so on).
- VLOG(1) << "Got Close with code " << code;
+ DVLOG(1) << "Got Close with code " << code;
switch (state_) {
case CONNECTED:
state_ = RECV_CLOSED;