mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
bump up some log messages for easier debugging
This commit is contained in:
parent
8042379c44
commit
4e55f28220
@ -713,13 +713,13 @@ handle_rend_pqueue_cb(mainloop_event_t *ev, void *arg)
|
||||
compare_rend_request_by_effort_,
|
||||
offsetof(pending_rend_t, idx));
|
||||
|
||||
log_info(LD_REND, "Dequeued pending rendezvous request with effort: %u. "
|
||||
log_notice(LD_REND, "Dequeued pending rendezvous request with effort: %u. "
|
||||
"Remaining requests: %u",
|
||||
req->rdv_data.pow_effort,
|
||||
smartlist_len(pow_state->rend_request_pqueue));
|
||||
|
||||
if (queued_rend_request_is_too_old(req, now)) {
|
||||
log_info(LD_REND, "Top rend request has been pending for too long; "
|
||||
log_notice(LD_REND, "Top rend request has been pending for too long; "
|
||||
"discarding and moving to the next one.");
|
||||
free_pending_rend(req);
|
||||
continue; /* do not increment count, this one's free */
|
||||
@ -778,8 +778,8 @@ enqueue_rend_request(const hs_service_t *service, hs_service_intro_point_t *ip,
|
||||
compare_rend_request_by_effort_,
|
||||
offsetof(pending_rend_t, idx), req);
|
||||
|
||||
log_info(LD_REND, "Enqueued rendezvous request with effort: %u. "
|
||||
"Remaining requests: %u",
|
||||
log_notice(LD_REND, "Enqueued rendezvous request with effort: %u. "
|
||||
"Queued requests: %u",
|
||||
req->rdv_data.pow_effort,
|
||||
smartlist_len(pow_state->rend_request_pqueue));
|
||||
|
||||
@ -1251,7 +1251,7 @@ hs_circ_handle_introduce2(const hs_service_t *service,
|
||||
/* Add the rendezvous request to the priority queue if PoW defenses are
|
||||
* enabled, otherwise rendezvous as usual. */
|
||||
if (service->config.has_pow_defenses_enabled) {
|
||||
log_debug(LD_REND, "Adding introduction request to pqueue with effort: %u",
|
||||
log_notice(LD_REND, "Adding introduction request to pqueue with effort: %u",
|
||||
data.rdv_data.pow_effort);
|
||||
if (enqueue_rend_request(service, ip, &data, now) < 0) {
|
||||
goto done;
|
||||
|
@ -144,7 +144,7 @@ hs_pow_solve(const hs_pow_desc_params_t *pow_params,
|
||||
|
||||
/* We'll do a maximum of the nonce size iterations here which is the maximum
|
||||
* number of nonce we can try in an attempt to find a valid solution. */
|
||||
log_debug(LD_REND, "Solving proof of work");
|
||||
log_notice(LD_REND, "Solving proof of work");
|
||||
for (uint64_t i = 0; i < UINT64_MAX; i++) {
|
||||
/* Calculate S = equix_solve(C || N || E) */
|
||||
if (!equix_solve(ctx, challenge, HS_POW_CHALLENGE_LEN, solution)) {
|
||||
|
Loading…
Reference in New Issue
Block a user