summaryrefslogtreecommitdiff
path: root/src/app/config/resolve_addr.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-20 10:58:54 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-20 14:54:13 -0400
commita576f37cfeff9f6b0a13a9475b5eed424ee44db9 (patch)
tree59cfdbb2c11d23ed150688a3256838ed1f8f8726 /src/app/config/resolve_addr.c
parent75434a1df18e3007c286ce48a1e981a4e96e3f82 (diff)
downloadtor-a576f37cfeff9f6b0a13a9475b5eed424ee44db9.tar.gz
tor-a576f37cfeff9f6b0a13a9475b5eed424ee44db9.zip
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>
Diffstat (limited to 'src/app/config/resolve_addr.c')
-rw-r--r--src/app/config/resolve_addr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c
index df9af231bf..ba1c854d77 100644
--- a/src/app/config/resolve_addr.c
+++ b/src/app/config/resolve_addr.c
@@ -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;
}