mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
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:
parent
75434a1df1
commit
a576f37cfe
@ -287,8 +287,8 @@ get_address_from_config(const or_options_t *options, int warn_severity,
|
||||
}
|
||||
|
||||
/* Address can be used. We are done. */
|
||||
log_fn(warn_severity, LD_CONFIG, "Address found in configuration: %s",
|
||||
fmt_addr(addr_out));
|
||||
log_info(LD_CONFIG, "Address found in configuration: %s",
|
||||
fmt_addr(addr_out));
|
||||
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);
|
||||
|
||||
/* Found it! */
|
||||
log_fn(warn_severity, LD_CONFIG, "Address found from local hostname: %s",
|
||||
fmt_addr(addr_out));
|
||||
log_info(LD_CONFIG, "Address found from local hostname: %s",
|
||||
fmt_addr(addr_out));
|
||||
return FN_RET_OK;
|
||||
}
|
||||
|
||||
@ -402,8 +402,7 @@ get_address_from_interface(const or_options_t *options, int warn_severity,
|
||||
*method_out = "INTERFACE";
|
||||
|
||||
/* Found it! */
|
||||
log_fn(warn_severity, LD_CONFIG, "Address found from interface: %s",
|
||||
fmt_addr(addr_out));
|
||||
log_info(LD_CONFIG, "Address found from interface: %s", fmt_addr(addr_out));
|
||||
return FN_RET_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user