commit ec7495d35a4f120f6e6adf1e18f2ed10df38d155
parent e436ce2a3c6a67e466090d9b7db136d7dd0f8385
Author: Roger Dingledine <arma@torproject.org>
Date: Fri, 1 Jul 2022 17:41:21 -0400
log_err is reserved for fatal failures
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/feature/hs/hs_pow.c b/src/feature/hs/hs_pow.c
@@ -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;
}
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c
@@ -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));
}