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

Unified Diff: net/tools/quic/quic_client_session.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix for win 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
Index: net/tools/quic/quic_client_session.cc
diff --git a/net/tools/quic/quic_client_session.cc b/net/tools/quic/quic_client_session.cc
index bf9f0ed6e4dddb4bfb36d5e837297e604a346db2..e02ce9351737d8e33d5dea8b9d5da2122c485047 100644
--- a/net/tools/quic/quic_client_session.cc
+++ b/net/tools/quic/quic_client_session.cc
@@ -4,13 +4,13 @@
#include "net/tools/quic/quic_client_session.h"
-#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "net/log/net_log_with_source.h"
#include "net/quic/chromium/crypto/proof_verifier_chromium.h"
#include "net/quic/core/crypto/crypto_protocol.h"
#include "net/quic/core/quic_bug_tracker.h"
#include "net/quic/core/quic_server_id.h"
+#include "net/quic/platform/api/quic_logging.h"
#include "net/tools/quic/quic_spdy_client_stream.h"
using std::string;
@@ -43,17 +43,17 @@ void QuicClientSession::OnProofVerifyDetailsAvailable(
bool QuicClientSession::ShouldCreateOutgoingDynamicStream() {
if (!crypto_stream_->encryption_established()) {
- DVLOG(1) << "Encryption not active so no outgoing stream created.";
+ QUIC_DLOG(INFO) << "Encryption not active so no outgoing stream created.";
return false;
}
if (GetNumOpenOutgoingStreams() >= max_open_outgoing_streams()) {
- DVLOG(1) << "Failed to create a new outgoing stream. "
- << "Already " << GetNumOpenOutgoingStreams() << " open.";
+ QUIC_DLOG(INFO) << "Failed to create a new outgoing stream. "
+ << "Already " << GetNumOpenOutgoingStreams() << " open.";
return false;
}
if (goaway_received() && respect_goaway_) {
- DVLOG(1) << "Failed to create a new outgoing stream. "
- << "Already received goaway.";
+ QUIC_DLOG(INFO) << "Failed to create a new outgoing stream. "
+ << "Already received goaway.";
return false;
}
return true;
@@ -99,12 +99,12 @@ bool QuicClientSession::ShouldCreateIncomingDynamicStream(QuicStreamId id) {
return false;
}
if (goaway_received() && respect_goaway_) {
- DVLOG(1) << "Failed to create a new outgoing stream. "
- << "Already received goaway.";
+ QUIC_DLOG(INFO) << "Failed to create a new outgoing stream. "
+ << "Already received goaway.";
return false;
}
if (id % 2 != 0) {
- LOG(WARNING) << "Received invalid push stream id " << id;
+ QUIC_LOG(WARNING) << "Received invalid push stream id " << id;
connection()->CloseConnection(
QUIC_INVALID_STREAM_ID, "Server created odd numbered stream",
ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET);

Powered by Google App Engine
This is Rietveld 408576698