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

Unified Diff: net/tools/quic/quic_dispatcher.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/tools/quic/quic_client_session.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.cc
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
index b658e6829ddb7dda920917a281f18c2debd86e99..55becba4ce0c58e2da01bceb9bc578cc706a70ce 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -7,13 +7,13 @@
#include <utility>
#include "base/debug/stack_trace.h"
-#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "net/quic/core/crypto/quic_random.h"
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_utils.h"
#include "net/quic/platform/api/quic_bug_tracker.h"
+#include "net/quic/platform/api/quic_logging.h"
#include "net/tools/quic/chlo_extractor.h"
#include "net/tools/quic/quic_per_connection_packet_writer.h"
#include "net/tools/quic/quic_simple_server_session.h"
@@ -376,8 +376,8 @@ void QuicDispatcher::ProcessUnauthenticatedHeaderFate(
!time_wait_list_manager_->IsConnectionIdInTimeWait(connection_id)) {
// Add this connection_id to the time-wait state, to safely reject
// future packets.
- DVLOG(1) << "Adding connection ID " << connection_id
- << "to time-wait list.";
+ QUIC_DLOG(INFO) << "Adding connection ID " << connection_id
+ << "to time-wait list.";
time_wait_list_manager_->AddConnectionIdToTimeWait(
connection_id, framer_.version(),
/*connection_rejected_statelessly=*/false, nullptr);
@@ -424,8 +424,9 @@ QuicDispatcher::QuicPacketFate QuicDispatcher::ValidityChecks(
// set. Since this may be a client continuing a connection we lost track of
// via server restart, send a rejection to fast-fail the connection.
if (!header.public_header.version_flag) {
- DVLOG(1) << "Packet without version arrived for unknown connection ID "
- << header.public_header.connection_id;
+ QUIC_DLOG(INFO)
+ << "Packet without version arrived for unknown connection ID "
+ << header.public_header.connection_id;
return kFateTimeWait;
}
@@ -531,7 +532,8 @@ void QuicDispatcher::OnWriteBlocked(
void QuicDispatcher::OnConnectionAddedToTimeWaitList(
QuicConnectionId connection_id) {
- DVLOG(1) << "Connection " << connection_id << " added to time wait list.";
+ QUIC_DLOG(INFO) << "Connection " << connection_id
+ << " added to time wait list.";
}
void QuicDispatcher::OnPacket() {}
@@ -539,7 +541,7 @@ void QuicDispatcher::OnPacket() {}
void QuicDispatcher::OnError(QuicFramer* framer) {
QuicErrorCode error = framer->error();
SetLastError(error);
- DVLOG(1) << QuicErrorCodeToString(error);
+ QUIC_DLOG(INFO) << QuicErrorCodeToString(error);
}
bool QuicDispatcher::ShouldCreateSessionForUnknownVersion(QuicTag version_tag) {
@@ -659,7 +661,7 @@ void QuicDispatcher::ProcessBufferedChlos(size_t max_connections_to_create) {
}
QuicSession* session =
CreateQuicSession(connection_id, packets.front().client_address);
- DVLOG(1) << "Created new session for " << connection_id;
+ QUIC_DLOG(INFO) << "Created new session for " << connection_id;
session_map_.insert(
std::make_pair(connection_id, base::WrapUnique(session)));
DeliverPacketsToSession(packets, session);
@@ -683,8 +685,8 @@ bool QuicDispatcher::HasBufferedPackets(QuicConnectionId connection_id) {
void QuicDispatcher::OnBufferPacketFailure(EnqueuePacketResult result,
QuicConnectionId connection_id) {
- DVLOG(1) << "Fail to buffer packet on connection " << connection_id
- << " because of " << result;
+ QUIC_DLOG(INFO) << "Fail to buffer packet on connection " << connection_id
+ << " because of " << result;
}
void QuicDispatcher::OnConnectionRejectedStatelessly() {}
@@ -751,7 +753,7 @@ void QuicDispatcher::ProcessChlo() {
// Creates a new session and process all buffered packets for this connection.
QuicSession* session =
CreateQuicSession(current_connection_id_, current_client_address_);
- DVLOG(1) << "Created new session for " << current_connection_id_;
+ QUIC_DLOG(INFO) << "Created new session for " << current_connection_id_;
session_map_.insert(
std::make_pair(current_connection_id_, base::WrapUnique(session)));
std::list<BufferedPacket> packets =
« no previous file with comments | « net/tools/quic/quic_client_session.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698