Skip to content

Commit

Permalink
more info in log (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
olgavrou authored Dec 9, 2019
1 parent 3ac1a2b commit 19f3995
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/host/dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ namespace asynchost
service.c_str(),
&hints)) < 0)
{
LOG_FAIL_FMT("uv_getaddrinfo failed (async): {}", uv_strerror(rc));
LOG_FAIL_FMT(
"uv_getaddrinfo for host:service [{}:{}] failed (async) with error "
"{}",
host,
service,
uv_strerror(rc));
delete resolver;
return false;
}
Expand All @@ -56,7 +61,11 @@ namespace asynchost
service.c_str(),
&hints)) < 0)
{
LOG_FAIL_FMT("uv_getaddrinfo failed: {}", uv_strerror(rc));
LOG_FAIL_FMT(
"uv_getaddrinfo for host:service [{}:{}] failed with error {}",
host,
service,
uv_strerror(rc));
delete resolver;
return false;
}
Expand Down

0 comments on commit 19f3995

Please sign in to comment.