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

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

Issue 2611613003: Add quic_logging (Closed)
Patch Set: keep LOG rather than all DLOG 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/quic/core/quic_packet_creator.cc
diff --git a/net/quic/core/quic_packet_creator.cc b/net/quic/core/quic_packet_creator.cc
index cee8ca4486de1106e7412b89141008acf2cb05e3..57202590862d43a2cd461d782b8d301e5b1f911f 100644
--- a/net/quic/core/quic_packet_creator.cc
+++ b/net/quic/core/quic_packet_creator.cc
@@ -7,7 +7,6 @@
#include <algorithm>
#include <cstdint>
-#include "base/logging.h"
#include "base/macros.h"
#include "net/quic/core/crypto/crypto_protocol.h"
#include "net/quic/core/quic_bug_tracker.h"
@@ -15,6 +14,7 @@
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_utils.h"
#include "net/quic/platform/api/quic_aligned.h"
+#include "net/quic/platform/api/quic_logging.h"
using base::StringPiece;
using std::string;
@@ -383,7 +383,7 @@ void QuicPacketCreator::CreateAndSerializeStreamFrame(
CopyToBuffer(iov, iov_offset, bytes_consumed, stream_buffer.get());
std::unique_ptr<QuicStreamFrame> frame(new QuicStreamFrame(
id, set_fin, stream_offset, bytes_consumed, std::move(stream_buffer)));
- DVLOG(1) << "Adding frame: " << *frame;
+ QUIC_DVLOG(1) << "Adding frame: " << *frame;
// TODO(ianswett): AppendTypeByte and AppendStreamFrame could be optimized
// into one method that takes a QuicStreamFrame, if warranted.
@@ -567,7 +567,7 @@ bool QuicPacketCreator::ShouldRetransmit(const QuicFrame& frame) {
bool QuicPacketCreator::AddFrame(const QuicFrame& frame,
bool save_retransmittable_frames) {
- DVLOG(1) << "Adding frame: " << frame;
+ QUIC_DVLOG(1) << "Adding frame: " << frame;
if (frame.type == STREAM_FRAME &&
frame.stream_frame->stream_id != kCryptoStreamId &&
packet_.encryption_level == ENCRYPTION_NONE) {

Powered by Google App Engine
This is Rietveld 408576698