mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
log_err is reserved for fatal failures
This commit is contained in:
committed by
Micah Elizabeth Scott
parent
e436ce2a3c
commit
ec7495d35a
@@ -221,7 +221,7 @@ hs_pow_verify(const hs_pow_service_state_t *pow_state,
|
||||
} else if (get_uint32(pow_state->seed_previous) == pow_solution->seed_head) {
|
||||
seed = pow_state->seed_previous;
|
||||
} else {
|
||||
log_err(LD_REND, "Seed head didn't match either seed.");
|
||||
log_warn(LD_REND, "Seed head didn't match either seed.");
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ initialize_pow_defenses(hs_service_t *service)
|
||||
* seed to be predictable even if it doesn't really exist yet, and it needs
|
||||
* to be different to the current nonce for the replay cache scrubbing to
|
||||
* function correctly. */
|
||||
log_err(LD_REND, "Generating both PoW seeds...");
|
||||
log_notice(LD_REND, "Generating both PoW seeds...");
|
||||
crypto_rand((char *)&pow_state->seed_current, HS_POW_SEED_LEN);
|
||||
crypto_rand((char *)&pow_state->seed_previous, HS_POW_SEED_LEN);
|
||||
|
||||
@@ -2446,7 +2446,7 @@ update_all_descriptors_pow_params(time_t now)
|
||||
* initialise pow_params in the descriptors. If this runs the next if
|
||||
* statement will run and set the correct values. */
|
||||
if (!encrypted->pow_params) {
|
||||
log_err(LD_REND, "Initializing pow_params in descriptor...");
|
||||
log_notice(LD_REND, "Initializing pow_params in descriptor...");
|
||||
encrypted->pow_params = tor_malloc_zero(sizeof(hs_pow_desc_params_t));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user