diff options
author | 2015-06-01 10:45:54 -0700 | |
---|---|---|
committer | 2015-06-01 10:45:54 -0700 | |
commit | 269676209ead4602e0cb0bd02ebf378dcd5df7b3 (patch) | |
tree | 796ee30af5ed69cd51ec1c76ed5f099aab1c4afc /src/core/surface/init.c | |
parent | 9d48ebfdc3eae8f68dcf1f60490ca14f5ca49aee (diff) |
add init checks
Diffstat (limited to 'src/core/surface/init.c')
-rw-r--r-- | src/core/surface/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/surface/init.c b/src/core/surface/init.c index 5cd5d9197f..ac6871c6f2 100644 --- a/src/core/surface/init.c +++ b/src/core/surface/init.c @@ -64,7 +64,9 @@ void grpc_init(void) { grpc_security_pre_init(); grpc_iomgr_init(); grpc_tracer_init("GRPC_TRACE"); - census_initialize(CENSUS_NONE); + if (census_initialize(CENSUS_NONE)) { + gpr_log(GPR_ERROR, "Could not initialize census."); + } grpc_timers_global_init(); } gpr_mu_unlock(&g_init_mu); |