diff options
author | 2016-06-13 15:18:38 -0700 | |
---|---|---|
committer | 2016-06-13 15:30:30 -0700 | |
commit | 8b48191854e9528abfdaf14d2cfee1538501cef9 (patch) | |
tree | e1d2dcd04c1b9dda086175ad0238e6e2c477502d /test/core | |
parent | 488fd0ec3139cabea924bb5d5c249114d8b7ba1e (diff) |
Set back to the default log function after using an override
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/support/log_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/support/log_test.c b/test/core/support/log_test.c index 0ae298aa4c..807a8175d7 100644 --- a/test/core/support/log_test.c +++ b/test/core/support/log_test.c @@ -78,11 +78,13 @@ int main(int argc, char **argv) { gpr_set_log_function(test_callback); gpr_log_message(GPR_INFO, "hello 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_set_log_verbosity() is called */ gpr_setenv("GRPC_VERBOSITY", "ERROR"); gpr_log_verbosity_init(); + test_log_function_reached(GPR_ERROR); test_log_function_unreached(GPR_INFO); test_log_function_unreached(GPR_DEBUG); |