|
|
@ -78,11 +78,13 @@ int main(int argc, char **argv) { |
|
|
|
gpr_set_log_function(test_callback); |
|
|
|
gpr_set_log_function(test_callback); |
|
|
|
gpr_log_message(GPR_INFO, "hello 1 2 3"); |
|
|
|
gpr_log_message(GPR_INFO, "hello 1 2 3"); |
|
|
|
gpr_log(GPR_INFO, "hello %d %d %d", 1, 2, 3); |
|
|
|
gpr_log(GPR_INFO, "hello %d %d %d", 1, 2, 3); |
|
|
|
|
|
|
|
gpr_set_log_function(NULL); |
|
|
|
|
|
|
|
|
|
|
|
/* gpr_log_verbosity_init() will be effective only once, and only before
|
|
|
|
/* gpr_log_verbosity_init() will be effective only once, and only before
|
|
|
|
* gpr_set_log_verbosity() is called */ |
|
|
|
* gpr_set_log_verbosity() is called */ |
|
|
|
gpr_setenv("GRPC_VERBOSITY", "ERROR"); |
|
|
|
gpr_setenv("GRPC_VERBOSITY", "ERROR"); |
|
|
|
gpr_log_verbosity_init(); |
|
|
|
gpr_log_verbosity_init(); |
|
|
|
|
|
|
|
|
|
|
|
test_log_function_reached(GPR_ERROR); |
|
|
|
test_log_function_reached(GPR_ERROR); |
|
|
|
test_log_function_unreached(GPR_INFO); |
|
|
|
test_log_function_unreached(GPR_INFO); |
|
|
|
test_log_function_unreached(GPR_DEBUG); |
|
|
|
test_log_function_unreached(GPR_DEBUG); |
|
|
|