relay: Don't log at warn level when we find an address

Dirauth code use the warn log severity when calling find_my_address() which
made it that every time we would find an address, it would log a warning.

These are not needed below info level and thus set them to info level. An IP
change is set to notice by default.

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2020-07-20 10:58:54 -04:00
parent 75434a1df1
commit a576f37cfe

View File

@ -287,8 +287,8 @@ get_address_from_config(const or_options_t *options, int warn_severity,
} }
/* Address can be used. We are done. */ /* Address can be used. We are done. */
log_fn(warn_severity, LD_CONFIG, "Address found in configuration: %s", log_info(LD_CONFIG, "Address found in configuration: %s",
fmt_addr(addr_out)); fmt_addr(addr_out));
return FN_RET_OK; return FN_RET_OK;
} }
@ -350,8 +350,8 @@ get_address_from_hostname(const or_options_t *options, int warn_severity,
*hostname_out = tor_strdup(hostname); *hostname_out = tor_strdup(hostname);
/* Found it! */ /* Found it! */
log_fn(warn_severity, LD_CONFIG, "Address found from local hostname: %s", log_info(LD_CONFIG, "Address found from local hostname: %s",
fmt_addr(addr_out)); fmt_addr(addr_out));
return FN_RET_OK; return FN_RET_OK;
} }
@ -402,8 +402,7 @@ get_address_from_interface(const or_options_t *options, int warn_severity,
*method_out = "INTERFACE"; *method_out = "INTERFACE";
/* Found it! */ /* Found it! */
log_fn(warn_severity, LD_CONFIG, "Address found from interface: %s", log_info(LD_CONFIG, "Address found from interface: %s", fmt_addr(addr_out));
fmt_addr(addr_out));
return FN_RET_OK; return FN_RET_OK;
} }