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

Issue 1658923003: Improve loggging to debug invalid acks. No functional change. (Closed)

Created:
4 years, 10 months ago by ramant (doing other things)
Modified:
4 years, 10 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ian Swett
Base URL:
https://chromium.googlesource.com/chromium/src.git@113053115
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve loggging to debug invalid acks. No functional change. Merge internal change: 113054959 R=rch@chromium.org

Patch Set 1 #

Total comments: 4

Patch Set 2 : revert clang-format statements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M net/quic/quic_connection.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 7 (1 generated)
ramant (doing other things)
4 years, 10 months ago (2016-02-02 04:22:44 UTC) #1
Ryan Hamilton
lgtm https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc File net/quic/quic_connection.cc (right): https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc#newcode793 net/quic/quic_connection.cc:793: // clang-format off Why clang-format off?
4 years, 10 months ago (2016-02-02 04:33:19 UTC) #3
ramant (doing other things)
https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc File net/quic/quic_connection.cc (right): https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc#newcode793 net/quic/quic_connection.cc:793: // clang-format off On 2016/02/02 04:33:19, Ryan Hamilton wrote: ...
4 years, 10 months ago (2016-02-02 05:08:26 UTC) #4
Ryan Hamilton
https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc File net/quic/quic_connection.cc (right): https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc#newcode793 net/quic/quic_connection.cc:793: // clang-format off On 2016/02/02 05:08:25, ramant wrote: > ...
4 years, 10 months ago (2016-02-02 05:23:26 UTC) #5
ramant (doing other things)
Reverted the clang-format statements. Thanks Ryan. https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc File net/quic/quic_connection.cc (right): https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc#newcode793 net/quic/quic_connection.cc:793: // clang-format off ...
4 years, 10 months ago (2016-02-02 06:42:10 UTC) #6
Ryan Hamilton
4 years, 10 months ago (2016-02-02 06:43:25 UTC) #7
On 2016/02/02 06:42:10, ramant wrote:
> Reverted the clang-format statements. Thanks Ryan.
> 
> https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc
> File net/quic/quic_connection.cc (right):
> 
>
https://codereview.chromium.org/1658923003/diff/1/net/quic/quic_connection.cc...
> net/quic/quic_connection.cc:793: // clang-format off
> On 2016/02/02 05:23:26, Ryan Hamilton wrote:
> > On 2016/02/02 05:08:25, ramant wrote:
> > > On 2016/02/02 04:33:19, Ryan Hamilton wrote:
> > > > Why clang-format off?
> > > 
> > > Added it to keep code in sync with internal code. Thought merging becomes
> > easier
> > > (internally LOG_FIRST_N and the intention to keep name: value on the same
> line
> > > results in the following format). Chrome tries
> > > to optimize for # of lines and formatting changes and results in
conflicts. 
> > > 
> > > What do you think of using clang-format off/on to keep chromium code
similar
> > to
> > > internal code.
> > > 
> > >     LOG_FIRST_N(WARNING, 10)
> > >         << ENDPOINT
> > >         << "Peer's observed unsent packet:" <<
incoming_ack.largest_observed
> > >         << " vs " << packet_generator_.packet_number();
> > 
> > Hm. I'm not in love with that. We could define LOG_FIRST_N if we wanted to?
> 
> Reverted the clang-format statements.
> 
> +1 to adding LOG_FIRST_N macro (will work on it in a separate CL).

Sounds good. I think it'd be fine to define it to simply be LOG_FIRST_N(level,
count) => LOG(level)

Powered by Google App Engine
This is Rietveld 408576698