log_err is reserved for fatal failures

This commit is contained in:
Roger Dingledine
2022-07-01 17:41:21 -04:00
committed by Micah Elizabeth Scott
parent e436ce2a3c
commit ec7495d35a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
}
+2 -2
View File
@@ -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));
}