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

Unified Diff: net/quic/quic_connection_logger.cc

Issue 17333003: Pretty-print QUIC CONNECTION_CLOSE and RST_STREAM error codes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 6 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/quic_connection_logger.cc
diff --git a/net/quic/quic_connection_logger.cc b/net/quic/quic_connection_logger.cc
index 5b335443a86c92642cee6508379c7a36464e98bd..9a0350921923ff74af51ad2bfb44b0804a8caf6d 100644
--- a/net/quic/quic_connection_logger.cc
+++ b/net/quic/quic_connection_logger.cc
@@ -113,7 +113,7 @@ Value* NetLogQuicRstStreamFrameCallback(const QuicRstStreamFrame* frame,
NetLog::LogLevel /* log_level */) {
DictionaryValue* dict = new DictionaryValue();
dict->SetInteger("stream_id", frame->stream_id);
- dict->SetInteger("error_code", frame->error_code);
+ dict->SetInteger("quic_rst_stream_error", frame->error_code);
dict->SetString("details", frame->error_details);
return dict;
}
@@ -122,7 +122,7 @@ Value* NetLogQuicConnectionCloseFrameCallback(
const QuicConnectionCloseFrame* frame,
NetLog::LogLevel /* log_level */) {
DictionaryValue* dict = new DictionaryValue();
- dict->SetInteger("error_code", frame->error_code);
+ dict->SetInteger("quic_error", frame->error_code);
dict->SetString("details", frame->error_details);
return dict;
}

Powered by Google App Engine
This is Rietveld 408576698