Trying one more time... Can anyone reply on this one? ב-יום רביעי, 8 בדצמבר 2021 בשעה 12:29:56 UTC+2, Tomer Schwartz כתב/ה:
> I posted this question also on SO, but no replies there as well. I'm > actually surprised, as this question should be trivial, no? (either it's > supported or not...) > Anyway, here is the call-stack on the server side that triggers the > modification of the verbosity level and actually checks the value of the > environment variable: > [image: Picture1.png] > > So this happens following the construction of GrpcEnvironment, but this is > a singleton and its ctor is not accessible. > In addition, the method gpr_log_verbosity_init() wasn't declared as > external and can't be used from managed code. > Any feedback would be appreciated. > > Thanks, > Tomer. > ב-יום שלישי, 7 בדצמבר 2021 בשעה 10:38:08 UTC+2, Tomer Schwartz כתב/ה: > >> Hi, >> >> Is it possible to change the verbosity level of the native gRPC C core >> libraries *during runtime*? >> Setting the GRPC_VERBOSITY and GRPC_TRACE as described here >> <https://github.com/grpc/grpc/blob/master/TROUBLESHOOTING.md>, seems to >> work only if it's done before initialization stages of gRPC C Core. >> To be more specific, we are using Grpc.Core >> <https://www.nuget.org/packages/Grpc.Core/> library which is the C# >> implementation of gRPC based on the native gRPC C-core library. When >> looking at the C-Core library, I see that in log.cc there is a static >> member called g_min_severity_to_print, which determines whether >> gpr_should_log or not, but that member is being set only during >> gpr_log_verbosity_init(), and that function is called only during >> initialization (grpc_init() --> grpc_once_init() --> ... --> >> do_basic_init() --> gpr_log_verbosity_init()). >> >> Thanks, >> Tomer. >> > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/686bacf6-b37e-4dcd-a7cd-45e0b7d3fe5cn%40googlegroups.com.