From a9163b6e0e6e5a7b87f85b89873fe547eaed4af7 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Wed, 9 Oct 2024 19:41:35 +0800 Subject: [PATCH] Remove `gpr_set_log_function` (#1023) This has been removed in grpc/grpc@d3560d9176acfc67a498297fa2d3a45065e82e71. This fixes a build failure with gRPC 1.67. --- src/fastnetmon.cpp | 8 -------- src/fastnetmon_api_client.cpp | 6 ------ 2 files changed, 14 deletions(-) diff --git a/src/fastnetmon.cpp b/src/fastnetmon.cpp index 4224d2c..d881180 100644 --- a/src/fastnetmon.cpp +++ b/src/fastnetmon.cpp @@ -464,10 +464,6 @@ void free_up_all_resources(); void interruption_signal_handler(int signal_number); #ifdef FASTNETMON_API -void silent_logging_function(gpr_log_func_args* args) { - // We do not want any logging here -} - // We could not define this variable in top of the file because we should define class before FastnetmonApiServiceImpl api_service; @@ -1864,10 +1860,6 @@ int main(int argc, char** argv) { std::filesystem::remove(fastnetmon_platform_configuration.backtrace_path); } -#ifdef FASTNETMON_API - gpr_set_log_function(silent_logging_function); -#endif - // Set default ban configuration init_global_ban_settings(); diff --git a/src/fastnetmon_api_client.cpp b/src/fastnetmon_api_client.cpp index d2a5f5c..56fcccd 100644 --- a/src/fastnetmon_api_client.cpp +++ b/src/fastnetmon_api_client.cpp @@ -90,10 +90,6 @@ class FastnetmonClient { std::unique_ptr stub_; }; -void silent_logging_function(gpr_log_func_args* args) { - // We do not want any logging here -} - int main(int argc, char** argv) { std::string supported_commands_list = "ban, unban, get_banlist"; @@ -102,8 +98,6 @@ int main(int argc, char** argv) { return 1; } - gpr_set_log_function(silent_logging_function); - // Instantiate the client. It requires a channel, out of which the actual RPCs // are created. This channel models a connection to an endpoint (in this case, // localhost at port 50051). We indicate that the channel isn't authenticated