0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

modules/s_dns: More descriptive log messages on timeouts.

This commit is contained in:
Jason Volk 2018-10-14 04:12:28 -07:00
parent 0843ff5f79
commit 8f05718e2b

View file

@ -226,7 +226,11 @@ ircd::net::dns::resolver::check_timeout(const uint16_t &id,
log::warning
{
log, "DNS timeout id:%u on attempt %u", id, tag.tries
log, "DNS timeout id:%u on attempt %u of %u '%s'",
id,
tag.tries,
size_t(retry_max),
host(tag.hp)
};
tag.last = steady_point{};
@ -256,7 +260,9 @@ ircd::net::dns::resolver::check_timeout(const uint16_t &id,
log::error
{
log, "DNS timeout id:%u", id
log, "DNS timeout id:%u for '%s'",
id,
string(tag.hp)
};
tag.cb(std::make_exception_ptr(system_error{ec}), tag.hp, {});