[Gpr_To_Absl_Logging] Remove deprecated function gpr_set_log_verbosity (#37269)

[Gpr_To_Absl_Logging] Remove deprecated function gpr_set_log_verbosity

Closes #37269

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37269 from tanvi-jagtap:remove_gpr_set_log_verbosity cb4b0d9e17
PiperOrigin-RevId: 657057745
pull/37323/head
Tanvi Jagtap 4 months ago committed by Copybara-Service
parent 791595b27d
commit cf88319446
  1. 1
      grpc.def
  2. 3
      include/grpc/support/log.h
  3. 6
      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

@ -232,7 +232,6 @@ EXPORTS
gpr_cpu_current_cpu
gpr_log
gpr_should_log
gpr_set_log_verbosity
gpr_log_verbosity_init
gpr_set_log_function
gpr_format_message

@ -53,9 +53,6 @@ GPRAPI void gpr_log(const char* file, int line, gpr_log_severity severity,
GPRAPI int gpr_should_log(gpr_log_severity severity);
/** Set global log verbosity */
GPRAPI void gpr_set_log_verbosity(gpr_log_severity deprecated_setting);
GPRAPI void gpr_log_verbosity_init(void);
/** Log overrides: applications can use this API to intercept logging calls

@ -82,12 +82,6 @@ void gpr_log_message(const char* file, int line, gpr_log_severity severity,
}
}
void gpr_set_log_verbosity(
[[maybe_unused]] gpr_log_severity deprecated_setting) {
LOG(ERROR)
<< "This will not be set. Please set this via absl log level settings.";
}
void gpr_log_verbosity_init(void) {
// This is enabled in Github only.
// This ifndef is converted to ifdef internally by copybara.

@ -255,7 +255,6 @@ gpr_cpu_num_cores_type gpr_cpu_num_cores_import;
gpr_cpu_current_cpu_type gpr_cpu_current_cpu_import;
gpr_log_type gpr_log_import;
gpr_should_log_type gpr_should_log_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_format_message_type gpr_format_message_import;
@ -542,7 +541,6 @@ void grpc_rb_load_imports(HMODULE library) {
gpr_cpu_current_cpu_import = (gpr_cpu_current_cpu_type) GetProcAddress(library, "gpr_cpu_current_cpu");
gpr_log_import = (gpr_log_type) GetProcAddress(library, "gpr_log");
gpr_should_log_import = (gpr_should_log_type) GetProcAddress(library, "gpr_should_log");
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_format_message_import = (gpr_format_message_type) GetProcAddress(library, "gpr_format_message");

@ -741,9 +741,6 @@ extern gpr_log_type gpr_log_import;
typedef int(*gpr_should_log_type)(gpr_log_severity severity);
extern gpr_should_log_type gpr_should_log_import;
#define gpr_should_log gpr_should_log_import
typedef void(*gpr_set_log_verbosity_type)(gpr_log_severity deprecated_setting);
extern gpr_set_log_verbosity_type gpr_set_log_verbosity_import;
#define gpr_set_log_verbosity gpr_set_log_verbosity_import
typedef void(*gpr_log_verbosity_init_type)(void);
extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import;
#define gpr_log_verbosity_init gpr_log_verbosity_init_import

Loading…
Cancel
Save