OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #ifndef NET_QUIC_CORE_QUIC_BUG_TRACKER_H_ | 4 #ifndef NET_QUIC_CORE_QUIC_BUG_TRACKER_H_ |
5 #define NET_QUIC_CORE_QUIC_BUG_TRACKER_H_ | 5 #define NET_QUIC_CORE_QUIC_BUG_TRACKER_H_ |
6 | 6 |
7 // For external QUIC, QUIC_BUG should be #defined to LOG(DFATAL) and | 7 // For external QUIC, QUIC_BUG should be #defined to LOG(DFATAL) and |
8 // QUIC_BUG_IF(condition) to LOG_IF(DFATAL, condition) as client-side log rate | 8 // QUIC_BUG_IF(condition) to LOG_IF(DFATAL, condition) as client-side log rate |
9 // limiting is less important and chrome doesn't LOG_FIRST_N anyway. | 9 // limiting is less important and chrome doesn't LOG_FIRST_N anyway. |
10 #define QUIC_BUG LOG(DFATAL) | 10 #define QUIC_BUG_IMPL LOG(DFATAL) |
11 #define QUIC_BUG_IF(condition) LOG_IF(DFATAL, condition) | 11 #define QUIC_BUG_IF_IMPL(condition) LOG_IF(DFATAL, condition) |
12 | 12 |
13 #endif // NET_QUIC_CORE_QUIC_BUG_TRACKER_H_ | 13 #endif // NET_QUIC_CORE_QUIC_BUG_TRACKER_H_ |
OLD | NEW |