[grpc][Gpr_To_Absl_Logging] Remove gpr_assertion_failed function (#36912)

[grpc][Gpr_To_Absl_Logging] Remove gpr_assertion_failed function

Closes #36912

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36912 from tanvi-jagtap:remove_gpr_assertion_failed faded6fd6d
PiperOrigin-RevId: 643699881
pull/36938/head
Tanvi Jagtap 6 months ago committed by Copybara-Service
parent 8f2d24d112
commit 4c01a30f37
  1. 1
      grpc.def
  2. 3
      include/grpc/support/log.h
  3. 5
      src/core/util/log.cc
  4. 2
      src/ruby/ext/grpc/rb_grpc_imports.generated.c
  5. 3
      src/ruby/ext/grpc/rb_grpc_imports.generated.h

1
grpc.def generated

@ -237,7 +237,6 @@ EXPORTS
gpr_set_log_verbosity
gpr_log_verbosity_init
gpr_set_log_function
gpr_assertion_failed
gpr_format_message
gpr_strdup
gpr_asprintf

@ -85,9 +85,6 @@ typedef void (*gpr_log_func)(gpr_log_func_args* args);
GPRAPI void gpr_set_log_function(gpr_log_func func);
GPRAPI void gpr_assertion_failed(const char* filename, int line,
const char* message) GPR_ATTRIBUTE_NORETURN;
#ifdef __cplusplus
}
#endif

@ -53,11 +53,6 @@ void gpr_unreachable_code(const char* reason, const char* file, int line) {
grpc_core::SourceLocation(file, line));
}
void gpr_assertion_failed(const char* filename, int line, const char* message) {
grpc_core::Crash(absl::StrCat("ASSERTION FAILED: ", message),
grpc_core::SourceLocation(filename, line));
}
const char* gpr_log_severity_string(gpr_log_severity severity) {
switch (severity) {
case GPR_LOG_SEVERITY_DEBUG:

@ -260,7 +260,6 @@ gpr_log_message_type gpr_log_message_import;
gpr_set_log_verbosity_type gpr_set_log_verbosity_import;
gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
gpr_set_log_function_type gpr_set_log_function_import;
gpr_assertion_failed_type gpr_assertion_failed_import;
gpr_format_message_type gpr_format_message_import;
gpr_strdup_type gpr_strdup_import;
gpr_asprintf_type gpr_asprintf_import;
@ -550,7 +549,6 @@ void grpc_rb_load_imports(HMODULE library) {
gpr_set_log_verbosity_import = (gpr_set_log_verbosity_type) GetProcAddress(library, "gpr_set_log_verbosity");
gpr_log_verbosity_init_import = (gpr_log_verbosity_init_type) GetProcAddress(library, "gpr_log_verbosity_init");
gpr_set_log_function_import = (gpr_set_log_function_type) GetProcAddress(library, "gpr_set_log_function");
gpr_assertion_failed_import = (gpr_assertion_failed_type) GetProcAddress(library, "gpr_assertion_failed");
gpr_format_message_import = (gpr_format_message_type) GetProcAddress(library, "gpr_format_message");
gpr_strdup_import = (gpr_strdup_type) GetProcAddress(library, "gpr_strdup");
gpr_asprintf_import = (gpr_asprintf_type) GetProcAddress(library, "gpr_asprintf");

@ -756,9 +756,6 @@ extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
typedef void(*gpr_set_log_function_type)(gpr_log_func func);
extern gpr_set_log_function_type gpr_set_log_function_import;
#define gpr_set_log_function gpr_set_log_function_import
typedef void(*gpr_assertion_failed_type)(const char* filename, int line, const char* message);
extern gpr_assertion_failed_type gpr_assertion_failed_import;
#define gpr_assertion_failed gpr_assertion_failed_import
typedef char*(*gpr_format_message_type)(int messageid);
extern gpr_format_message_type gpr_format_message_import;
#define gpr_format_message gpr_format_message_import

Loading…
Cancel
Save