浏览代码

clean up some log messages

svn:r17406
Roger Dingledine 15 年之前
父节点
当前提交
984dc51f26
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/or/main.c
  2. 1 1
      src/or/rendclient.c

+ 2 - 2
src/or/main.c

@@ -140,8 +140,8 @@ connection_add(connection_t *conn)
               conn_write_callback, conn);
   }
 
-  log_debug(LD_NET,"new conn type %s, socket %d, n_conns %d.",
-            conn_type_to_string(conn->type), conn->s,
+  log_debug(LD_NET,"new conn type %s, socket %d, address %s, n_conns %d.",
+            conn_type_to_string(conn->type), conn->s, conn->address,
             smartlist_len(connection_array));
 
   return 0;

+ 1 - 1
src/or/rendclient.c

@@ -425,7 +425,7 @@ directory_get_from_hs_dir(const char *desc_id, const rend_data_t *rend_query)
                     "directory '%s' on port %d.",
            rend_query->onion_address, desc_id_base32,
            rend_query->auth_type,
-           (rend_query->auth_type == REND_NO_AUTH ? "NULL" :
+           (rend_query->auth_type == REND_NO_AUTH ? "[none]" :
            escaped_safe_str(descriptor_cookie_base64)),
            hs_dir->nickname, hs_dir->dir_port);
   return 1;