Move log to tracing package

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
This commit is contained in:
Erik Hollensbe
2022-03-25 12:20:11 -07:00
committed by Benjamin Fry
parent fab0b6aa6e
commit 77a821f52b
66 changed files with 283 additions and 145 deletions

View File

@@ -19,6 +19,7 @@ use proto::rr::domain::TryParseIp;
use proto::rr::{IntoName, Name, Record, RecordType};
use proto::xfer::{DnsRequestOptions, RetryDnsHandle};
use proto::DnsHandle;
use tracing::{debug, trace};
use crate::caching_client::CachingClient;
use crate::config::{ResolverConfig, ResolverOpts};
@@ -227,7 +228,7 @@ impl<C: DnsHandle<Error = ResolveError>, P: ConnectionProvider<Conn = C>> AsyncR
#[cfg(not(feature = "dnssec"))]
{
// TODO: should this just be a panic, or a pinned error?
warn!("validate option is only available with 'dnssec' feature");
tracing::warn!("validate option is only available with 'dnssec' feature");
either = LookupEither::Retry(client);
}
} else {