]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix log messages in channeltls.c
authorteor <teor2345@gmail.com>
Thu, 25 Dec 2014 11:23:54 +0000 (22:23 +1100)
committerteor <teor2345@gmail.com>
Thu, 25 Dec 2014 13:53:58 +0000 (00:53 +1100)
Add hop number in debug "Contemplating intermediate hop..."
Fix capitalisation on warn "Failed to choose an exit server"

src/or/circuitbuild.c

index faddc08e0321569caed004817fc575602ffe51f9..36ccdc9d5f66b4cf02e4500863792bf84a744fa6 100644 (file)
@@ -1863,7 +1863,7 @@ onion_pick_cpath_exit(origin_circuit_t *circ, extend_info_t *exit)
       choose_good_exit_server(circ->base_.purpose, state->need_uptime,
                               state->need_capacity, state->is_internal);
     if (!node) {
-      log_warn(LD_CIRC,"failed to choose an exit server");
+      log_warn(LD_CIRC,"Failed to choose an exit server");
       return -1;
     }
     exit = extend_info_from_node(node, 0);
@@ -1990,7 +1990,8 @@ choose_good_middle_server(uint8_t purpose,
   tor_assert(CIRCUIT_PURPOSE_MIN_ <= purpose &&
              purpose <= CIRCUIT_PURPOSE_MAX_);
 
-  log_debug(LD_CIRC, "Contemplating intermediate hop: random choice.");
+  log_debug(LD_CIRC, "Contemplating intermediate hop %d: random choice.",
+            cur_len);
   excluded = smartlist_new();
   if ((r = build_state_get_exit_node(state))) {
     nodelist_add_node_and_family(excluded, r);