0
0
mirror of https://gitlab.torproject.org/tpo/core/tor.git synced 2024-09-20 12:22:14 +02:00

Make a few INFO log lines into DEBUG

svn:r5257
This commit is contained in:
Peter Palfrader 2005-10-17 02:13:36 +00:00
parent c0fd66a746
commit 7b15f77dd6
7 changed files with 14 additions and 13 deletions

3
debian/changelog vendored
View File

@ -3,8 +3,9 @@ tor (0.1.1.8-alpha-cvs-1) experimental; urgency=low
* CVS snapshot. Mon, 17 Oct 2005 03:54:01 +0200
* Remove 08_add_newlines_between_serverdescriptors.dpatch.
* Update 06_add_compile_time_defaults.dpatch
* Add some info -> debug log downgrades.
-- Peter Palfrader <weasel@debian.org> Mon, 17 Oct 2005 03:58:58 +0200
-- Peter Palfrader <weasel@debian.org> Mon, 17 Oct 2005 04:01:50 +0200
tor (0.1.1.8-alpha-1) experimental; urgency=low

View File

@ -866,7 +866,7 @@ onionskin_answer(circuit_t *circ, uint8_t cell_type, char *payload, char *keys)
memcpy(cell.payload, payload,
cell_type == CELL_CREATED ? ONIONSKIN_REPLY_LEN : DIGEST_LEN*2);
log_fn(LOG_INFO,"init digest forward 0x%.8x, backward 0x%.8x.",
log_fn(LOG_DEBUG,"init digest forward 0x%.8x, backward 0x%.8x.",
(unsigned int)*(uint32_t*)(keys), (unsigned int)*(uint32_t*)(keys+20));
if (circuit_init_cpath_crypto(tmp_cpath, keys, 0)<0) {
log_fn(LOG_WARN,"Circuit initialization failed");

View File

@ -335,7 +335,7 @@ command_process_destroy_cell(cell_t *cell, connection_t *conn)
return;
}
log_fn(LOG_INFO,"Received for circID %d.",cell->circ_id);
log_fn(LOG_DEBUG,"Received for circID %d.",cell->circ_id);
if (circ->state == CIRCUIT_STATE_ONIONSKIN_PENDING) {
onion_pending_remove(circ);
}

View File

@ -234,7 +234,7 @@ _connection_free(connection_t *conn)
tor_free(conn->requested_resource);
if (conn->s >= 0) {
log_fn(LOG_INFO,"closing fd %d.",conn->s);
log_fn(LOG_DEBUG,"closing fd %d.",conn->s);
tor_close_socket(conn->s);
}
@ -631,7 +631,7 @@ connection_handle_listener_read(connection_t *conn, int new_type)
connection_mark_for_close(conn);
return -1;
}
log(LOG_INFO,"Connection accepted on socket %d (child of fd %d).",news, conn->s);
log(LOG_DEBUG,"Connection accepted on socket %d (child of fd %d).",news, conn->s);
set_socket_nonblocking(news);
@ -1756,7 +1756,7 @@ connection_send_destroy(uint16_t circ_id, connection_t *conn)
memset(&cell, 0, sizeof(cell_t));
cell.circ_id = circ_id;
cell.command = CELL_DESTROY;
log_fn(LOG_INFO,"Sending destroy (circID %d).", circ_id);
log_fn(LOG_DEBUG,"Sending destroy (circID %d).", circ_id);
connection_or_write_cell_to_buf(&cell, conn);
return 0;
}

View File

@ -1230,7 +1230,7 @@ directory_handle_command_get(connection_t *conn, char *headers,
write_http_status_line(conn, 400, "Bad request");
return 0;
}
log_fn(LOG_INFO,"rewritten url as '%s'.", url);
log_fn(LOG_DEBUG,"rewritten url as '%s'.", url);
if (!strcmp(url,"/tor/") || !strcmp(url,"/tor/dir.z")) { /* directory fetch */
int deflated = !strcmp(url,"/tor/dir.z");
@ -1453,7 +1453,7 @@ directory_handle_command_post(connection_t *conn, char *headers,
write_http_status_line(conn, 400, "Bad request");
return 0;
}
log_fn(LOG_INFO,"rewritten url as '%s'.", url);
log_fn(LOG_DEBUG,"rewritten url as '%s'.", url);
origin = http_get_origin(headers, conn);
if (!strcmp(url,"/tor/")) { /* server descriptor post */
@ -1556,7 +1556,7 @@ connection_dir_finished_flushing(connection_t *conn)
connection_stop_writing(conn);
return 0;
case DIR_CONN_STATE_SERVER_WRITING:
log_fn(LOG_INFO,"Finished writing server response. Closing.");
log_fn(LOG_DEBUG,"Finished writing server response. Closing.");
connection_mark_for_close(conn);
return 0;
default:

View File

@ -139,7 +139,7 @@ connection_add(connection_t *conn)
nfds++;
log_fn(LOG_INFO,"new conn type %s, socket %d, nfds %d.",
log_fn(LOG_DEBUG,"new conn type %s, socket %d, nfds %d.",
conn_type_to_string(conn->type), conn->s, nfds);
return 0;
@ -157,7 +157,7 @@ connection_remove(connection_t *conn)
tor_assert(conn);
tor_assert(nfds>0);
log_fn(LOG_INFO,"removing socket %d (type %s), nfds now %d",
log_fn(LOG_DEBUG,"removing socket %d (type %s), nfds now %d",
conn->s, conn_type_to_string(conn->type), nfds-1);
tor_assert(conn->poll_index >= 0);
@ -437,7 +437,7 @@ conn_close_if_marked(int i)
assert_connection_ok(conn, time(NULL));
assert_all_pending_dns_resolves_ok();
log_fn(LOG_INFO,"Cleaning up connection (fd %d).",conn->s);
log_fn(LOG_DEBUG,"Cleaning up connection (fd %d).",conn->s);
if (conn->s >= 0 && connection_wants_to_flush(conn)) {
/* -1 means it's an incomplete edge connection, or that the socket
* has already been closed as unflushable. */

View File

@ -407,7 +407,7 @@ rend_cache_store(const char *desc, size_t desc_len)
e->desc = tor_malloc(desc_len);
memcpy(e->desc, desc, desc_len);
log_fn(LOG_INFO,"Successfully stored rend desc '%s', len %d.",
log_fn(LOG_DEBUG,"Successfully stored rend desc '%s', len %d.",
safe_str(query), (int)desc_len);
return 1;
}