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:
parent
0843ff5f79
commit
8f05718e2b
1 changed files with 8 additions and 2 deletions
|
@ -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, {});
|
||||
|
|
Loading…
Reference in a new issue