--- src/serial/grpc_integration/grpc_integration.cpp.orig 2023-05-18 18:14:23 UTC +++ src/serial/grpc_integration/grpc_integration.cpp @@ -113,23 +113,8 @@ static CGRPCInitializer s_GRPCInitializer; grpc::Server::GlobalCallbacks* volatile CGRPCInitializer::sm_ServerCallbacks; static CGRPCInitializer s_GRPCInitializer; -extern "C" { - static void s_NCBI_GPR_Log_Function(gpr_log_func_args *args) { - static const char* unk_func = g_DiagUnknownFunction(); - CDiagCompileInfo diag_info(args->file, args->line, unk_func, "GRPC"); - EDiagSev sev = eDiag_Error; - switch (args->severity) { - case GPR_LOG_SEVERITY_DEBUG: sev = eDiag_Trace; break; - case GPR_LOG_SEVERITY_INFO: sev = eDiag_Info; break; - case GPR_LOG_SEVERITY_ERROR: sev = eDiag_Error; break; - } - CNcbiDiag(diag_info) << Severity(sev) << args->message << Endm; - } -} - CGRPCInitializer::CGRPCInitializer(void) { - gpr_set_log_function(s_NCBI_GPR_Log_Function); sm_ServerCallbacks = new CGRPCServerCallbacks; grpc::Server::SetGlobalCallbacks(sm_ServerCallbacks); // NB: on the client side, we encourage the use of