diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-06 13:14:54 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-06 13:14:54 +0200 |
commit | 7297dd73d5bfa05f829bf44cd8480627d5b387f8 (patch) | |
tree | 987645be361c5abec09b749a47b6863ffb501228 /src/resolve.c | |
parent | b3d678c5f2f2f6208f37780090427b6c47e446e4 (diff) | |
download | fastd-7297dd73d5bfa05f829bf44cd8480627d5b387f8.tar fastd-7297dd73d5bfa05f829bf44cd8480627d5b387f8.zip |
Improve some log levels
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resolve.c b/src/resolve.c index 20355d7..2a913d8 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -62,11 +62,11 @@ static void* resolve_peer(void *varg) { gai_ret = getaddrinfo(arg->hostname, portstr, &hints, &res); if (gai_ret || !res) { - pr_debug(arg->ctx, "Resolving host `%s' failed: %s", arg->hostname, gai_strerror(gai_ret)); + pr_verbose(arg->ctx, "resolving host `%s' failed: %s", arg->hostname, gai_strerror(gai_ret)); error = true; } else if (res->ai_addrlen > sizeof(fastd_peer_address) || (res->ai_addr->sa_family != AF_INET && res->ai_addr->sa_family != AF_INET6)) { - pr_warn(arg->ctx, "Resolving host `%s': unsupported address returned", arg->hostname); + pr_warn(arg->ctx, "resolving host `%s': unsupported address returned", arg->hostname); error = true; } @@ -77,7 +77,7 @@ static void* resolve_peer(void *varg) { ret.constraints = arg->constraints; if (!error) { - pr_debug(arg->ctx, "Resolved host `%s' successfully", arg->hostname); + pr_verbose(arg->ctx, "resolved host `%s' successfully", arg->hostname); memcpy(&ret.addr, res->ai_addr, res->ai_addrlen); } else { @@ -94,7 +94,7 @@ static void* resolve_peer(void *varg) { } void fastd_resolve_peer(fastd_context *ctx, const fastd_peer_config *peer) { - pr_debug(ctx, "Resolving host `%s' for peer `%s'...", peer->hostname, peer->name); + pr_verbose(ctx, "resolving host `%s' for peer `%s'...", peer->hostname, peer->name); resolv_arg *arg = malloc(sizeof(resolv_arg)); |