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

Unified Diff: net/quic/core/quic_crypto_server_stream.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_crypto_client_stream.cc ('k') | net/quic/core/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_crypto_server_stream.cc
diff --git a/net/quic/core/quic_crypto_server_stream.cc b/net/quic/core/quic_crypto_server_stream.cc
index 6bf695118507d4698801950747c303a041cbade7..e08827bdd79972ebb50852cec5a298356dda865b 100644
--- a/net/quic/core/quic_crypto_server_stream.cc
+++ b/net/quic/core/quic_crypto_server_stream.cc
@@ -16,6 +16,7 @@
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/core/quic_session.h"
+#include "net/quic/platform/api/quic_logging.h"
#include "net/quic/platform/api/quic_text_utils.h"
using base::StringPiece;
@@ -217,9 +218,9 @@ void QuicCryptoServerStream::
DCHECK(use_stateless_rejects_if_peer_supported_);
DCHECK(peer_supports_stateless_rejects_);
DCHECK(!handshake_confirmed());
- DVLOG(1) << "Closing connection "
- << session()->connection()->connection_id()
- << " because of a stateless reject.";
+ QUIC_DLOG(INFO) << "Closing connection "
+ << session()->connection()->connection_id()
+ << " because of a stateless reject.";
session()->connection()->CloseConnection(
QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, "stateless reject",
ConnectionCloseBehavior::SILENT_CLOSE);
@@ -285,7 +286,7 @@ void QuicCryptoServerStream::SendServerConfigUpdate(
if (FLAGS_quic_reloadable_flag_enable_async_get_proof) {
if (send_server_config_update_cb_ != nullptr) {
- DVLOG(1)
+ QUIC_DVLOG(1)
<< "Skipped server config update since one is already in progress";
return;
}
@@ -322,12 +323,12 @@ void QuicCryptoServerStream::SendServerConfigUpdate(
? session()->config()->ReceivedConnectionOptions()
: QuicTagVector()),
&server_config_update_message)) {
- DVLOG(1) << "Server: Failed to build server config update (SCUP)!";
+ QUIC_DVLOG(1) << "Server: Failed to build server config update (SCUP)!";
return;
}
- DVLOG(1) << "Server: Sending server config update: "
- << server_config_update_message.DebugString();
+ QUIC_DVLOG(1) << "Server: Sending server config update: "
+ << server_config_update_message.DebugString();
const QuicData& data = server_config_update_message.GetSerialized();
WriteOrBufferData(StringPiece(data.data(), data.length()), false, nullptr);
@@ -360,11 +361,12 @@ void QuicCryptoServerStream::FinishSendServerConfigUpdate(
send_server_config_update_cb_ = nullptr;
if (!ok) {
- DVLOG(1) << "Server: Failed to build server config update (SCUP)!";
+ QUIC_DVLOG(1) << "Server: Failed to build server config update (SCUP)!";
return;
}
- DVLOG(1) << "Server: Sending server config update: " << message.DebugString();
+ QUIC_DVLOG(1) << "Server: Sending server config update: "
+ << message.DebugString();
const QuicData& data = message.GetSerialized();
WriteOrBufferData(StringPiece(data.data(), data.length()), false, nullptr);
« no previous file with comments | « net/quic/core/quic_crypto_client_stream.cc ('k') | net/quic/core/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698