From b0e5f87984fc827d7ea93957862fb366a3ddbb19 Mon Sep 17 00:00:00 2001 From: Sara Dickinson Date: Sun, 13 Nov 2016 13:14:03 +0900 Subject: [PATCH] Minor logging updates --- src/context.c | 8 ++++++-- src/stub.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/context.c b/src/context.c index b8492380..121c536a 100644 --- a/src/context.c +++ b/src/context.c @@ -720,12 +720,16 @@ _getdns_upstream_shutdown(getdns_upstream *upstream) STUB_DEBUG_DAEMON, upstream->addr_str, (int)upstream->responses_received, (int)upstream->responses_timeouts, getdns_auth_str_array[upstream->tls_auth_state], (int)upstream->keepalive_timeout); - DEBUG_DAEMON("%s %s : Upstream stats - Resp=%d,Timeouts=%d,Best_auth=%s,Conns=%d,Conn_fails=%d,Conn_shutdowns=%d,Backoffs=%d\n", + DEBUG_DAEMON("%s %s : Upstream stats - Resp=%d,Timeouts=%d,Best_auth=%s,Conns=%d\n", STUB_DEBUG_DAEMON, upstream->addr_str, (int)upstream->total_responses, (int)upstream->total_timeouts, getdns_auth_str_array[upstream->best_tls_auth_state], - (int)upstream->conn_completed, (int)upstream->conn_setup_failed, + (int)upstream->conn_completed); + DEBUG_DAEMON("%s %s : Upstream stats - Conn_fails=%d,Conn_shutdowns=%d,Backoffs=%d\n", + STUB_DEBUG_DAEMON, upstream->addr_str, + (int)upstream->conn_setup_failed, (int)upstream->conn_shutdowns, (int)upstream->conn_backoffs); + #endif /* Back off connections that never got up service at all (probably no diff --git a/src/stub.c b/src/stub.c index d73798f4..2527ed61 100644 --- a/src/stub.c +++ b/src/stub.c @@ -1523,7 +1523,7 @@ upstream_write_cb(void *userarg) /* Fall through */ case STUB_SETUP_ERROR: /* Could not complete the set up. Need to fallback.*/ - DEBUG_STUB("%s %-35s: MSG: %p ERROR = %d\n", STUB_DEBUG_WRITE, + DEBUG_STUB("%s %-35s: Upstream: %p ERROR = %d\n", STUB_DEBUG_WRITE, __FUNCTION__, ((getdns_network_req *)userarg), q); upstream_failed(upstream, (q == STUB_TCP_ERROR ? 0:1)); /* Fall through */