Spam cleanup

pull/772/head
Craig Tiller 10 years ago
parent cb0a28eb86
commit 2c04a53450
  1. 17
      src/core/iomgr/resolve_address_posix.c
  2. 2
      src/core/statistics/census_init.c
  3. 2
      src/core/statistics/census_rpc_stats.c
  4. 2
      src/core/statistics/census_tracing.c

@ -66,7 +66,6 @@ grpc_resolved_addresses *grpc_blocking_resolve_address(
int s; int s;
size_t i; size_t i;
grpc_resolved_addresses *addrs = NULL; grpc_resolved_addresses *addrs = NULL;
const gpr_timespec start_time = gpr_now();
struct sockaddr_un *un; struct sockaddr_un *un;
if (name[0] == 'u' && name[1] == 'n' && name[2] == 'i' && name[3] == 'x' && if (name[0] == 'u' && name[1] == 'n' && name[2] == 'i' && name[3] == 'x' &&
@ -121,22 +120,6 @@ grpc_resolved_addresses *grpc_blocking_resolve_address(
i++; i++;
} }
/* Temporary logging, to help identify flakiness in dualstack_socket_test. */
{
const gpr_timespec delay = gpr_time_sub(gpr_now(), start_time);
const int delay_ms =
delay.tv_sec * GPR_MS_PER_SEC + delay.tv_nsec / GPR_NS_PER_MS;
gpr_log(GPR_INFO, "logspam: getaddrinfo(%s, %s) resolved %d addrs in %dms:",
host, port, addrs->naddrs, delay_ms);
for (i = 0; i < addrs->naddrs; i++) {
char *buf;
grpc_sockaddr_to_string(&buf, (struct sockaddr *)&addrs->addrs[i].addr,
0);
gpr_log(GPR_INFO, "logspam: [%d] %s", i, buf);
gpr_free(buf);
}
}
done: done:
gpr_free(host); gpr_free(host);
gpr_free(port); gpr_free(port);

@ -38,13 +38,11 @@
#include "src/core/statistics/census_tracing.h" #include "src/core/statistics/census_tracing.h"
void census_init(void) { void census_init(void) {
gpr_log(GPR_INFO, "Initialize census library.");
census_tracing_init(); census_tracing_init();
census_stats_store_init(); census_stats_store_init();
} }
void census_shutdown(void) { void census_shutdown(void) {
gpr_log(GPR_INFO, "Shutdown census library.");
census_stats_store_shutdown(); census_stats_store_shutdown();
census_tracing_shutdown(); census_tracing_shutdown();
} }

@ -222,7 +222,6 @@ void census_get_server_stats(census_aggregated_rpc_stats* data) {
} }
void census_stats_store_init(void) { void census_stats_store_init(void) {
gpr_log(GPR_INFO, "Initialize census stats store.");
init_mutex_once(); init_mutex_once();
gpr_mu_lock(&g_mu); gpr_mu_lock(&g_mu);
if (g_client_stats_store == NULL && g_server_stats_store == NULL) { if (g_client_stats_store == NULL && g_server_stats_store == NULL) {
@ -235,7 +234,6 @@ void census_stats_store_init(void) {
} }
void census_stats_store_shutdown(void) { void census_stats_store_shutdown(void) {
gpr_log(GPR_INFO, "Shutdown census stats store.");
init_mutex_once(); init_mutex_once();
gpr_mu_lock(&g_mu); gpr_mu_lock(&g_mu);
if (g_client_stats_store != NULL) { if (g_client_stats_store != NULL) {

@ -154,7 +154,6 @@ void census_tracing_end_op(census_op_id op_id) {
} }
void census_tracing_init(void) { void census_tracing_init(void) {
gpr_log(GPR_INFO, "Initialize census trace store.");
init_mutex_once(); init_mutex_once();
gpr_mu_lock(&g_mu); gpr_mu_lock(&g_mu);
if (g_trace_store == NULL) { if (g_trace_store == NULL) {
@ -167,7 +166,6 @@ void census_tracing_init(void) {
} }
void census_tracing_shutdown(void) { void census_tracing_shutdown(void) {
gpr_log(GPR_INFO, "Shutdown census trace store.");
gpr_mu_lock(&g_mu); gpr_mu_lock(&g_mu);
if (g_trace_store != NULL) { if (g_trace_store != NULL) {
census_ht_destroy(g_trace_store); census_ht_destroy(g_trace_store);

Loading…
Cancel
Save