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

Unified Diff: net/quic/core/quic_crypto_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_server_stream_test.cc ('k') | net/quic/core/quic_data_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_crypto_stream.cc
diff --git a/net/quic/core/quic_crypto_stream.cc b/net/quic/core/quic_crypto_stream.cc
index fc6a4ce2c279ac8db4b0a3e9f15b9d1b058518c5..814b2683a0ccd4b2d2745f8090bbebf44312c868 100644
--- a/net/quic/core/quic_crypto_stream.cc
+++ b/net/quic/core/quic_crypto_stream.cc
@@ -13,6 +13,7 @@
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_session.h"
#include "net/quic/core/quic_utils.h"
+#include "net/quic/platform/api/quic_logging.h"
using std::string;
using base::StringPiece;
@@ -48,13 +49,13 @@ QuicByteCount QuicCryptoStream::CryptoMessageFramingOverhead(
}
void QuicCryptoStream::OnError(CryptoFramer* framer) {
- DLOG(WARNING) << "Error processing crypto data: "
- << QuicErrorCodeToString(framer->error());
+ QUIC_DLOG(WARNING) << "Error processing crypto data: "
+ << QuicErrorCodeToString(framer->error());
}
void QuicCryptoStream::OnHandshakeMessage(
const CryptoHandshakeMessage& message) {
- DVLOG(1) << ENDPOINT << "Received " << message.DebugString();
+ QUIC_DVLOG(1) << ENDPOINT << "Received " << message.DebugString();
session()->OnCryptoHandshakeMessageReceived(message);
}
@@ -84,7 +85,7 @@ void QuicCryptoStream::OnDataAvailable() {
void QuicCryptoStream::SendHandshakeMessage(
const CryptoHandshakeMessage& message) {
- DVLOG(1) << ENDPOINT << "Sending " << message.DebugString();
+ QUIC_DVLOG(1) << ENDPOINT << "Sending " << message.DebugString();
session()->connection()->NeuterUnencryptedPackets();
session()->OnCryptoHandshakeMessageSent(message);
const QuicData& data = message.GetSerialized();
@@ -96,8 +97,8 @@ bool QuicCryptoStream::ExportKeyingMaterial(StringPiece label,
size_t result_len,
string* result) const {
if (!handshake_confirmed()) {
- DLOG(ERROR) << "ExportKeyingMaterial was called before forward-secure"
- << "encryption was established.";
+ QUIC_DLOG(ERROR) << "ExportKeyingMaterial was called before forward-secure"
+ << "encryption was established.";
return false;
}
return CryptoUtils::ExportKeyingMaterial(
« no previous file with comments | « net/quic/core/quic_crypto_server_stream_test.cc ('k') | net/quic/core/quic_data_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698