From a3aa81e179c49d26d2604fcc4ffb97a099b6602f Mon Sep 17 00:00:00 2001 From: Tanvi Jagtap Date: Wed, 8 May 2024 21:35:00 -0700 Subject: [PATCH] [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT Ban GPR_ASSERT and GPR_DEBUG_ASSERT. These macros are deprecated and should be replaced with absl CHECK and absl DCHECK, respectively. PiperOrigin-RevId: 632024499 --- tools/run_tests/sanity/core_banned_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/run_tests/sanity/core_banned_functions.py b/tools/run_tests/sanity/core_banned_functions.py index 7804dd0fe52..806f3c806b6 100755 --- a/tools/run_tests/sanity/core_banned_functions.py +++ b/tools/run_tests/sanity/core_banned_functions.py @@ -82,8 +82,8 @@ BANNED_EXCEPT = { "src/core/load_balancing/rls/rls.cc", "src/core/resolver/google_c2p/google_c2p_resolver.cc", ], - # use 'grpc_core::Crash' instead - "GPR_ASSERT(false": [], + # use 'absl CHECK' instead + "GPR_ASSERT": [], # Use `std::exchange()` instead. "absl::exchange": [], # Use `std::make_unique()` instead.