Skip to content

Commit

Permalink
CachingFallbackDnsResolver logs at debug level (#2283)
Browse files Browse the repository at this point in the history
CachingFallbackDnsResolver logs at debug level
  • Loading branch information
carterkozak authored May 17, 2024
1 parent b1e5ddf commit 4182ff2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-2283.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: CachingFallbackDnsResolver logs at debug level
links:
- https://github.com/palantir/dialogue/pull/2283
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ public ImmutableSet<InetAddress> resolve(String hostname) {
ImmutableSet<InetAddress> maybeFallback = fallbackCache.getIfPresent(hostname);
if (maybeFallback != null) {
lookupFallback.mark();
log.info(
"DNS resolution failed for host '{}', however fallback addresses are present in the cache",
UnsafeArg.of("hostname", hostname));
if (log.isDebugEnabled()) {
log.debug(
"DNS resolution failed for host '{}', however fallback addresses are present in the cache",
UnsafeArg.of("hostname", hostname));
}
return maybeFallback;
} else {
lookupFailure.mark();
Expand Down

0 comments on commit 4182ff2

Please sign in to comment.