mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-09 06:11:04 +01:00
Display actual error message from TokioAsyncResolver, if any
This commit is contained in:
parent
0cec421930
commit
bfbefb0cd2
1 changed files with 5 additions and 1 deletions
|
@ -149,7 +149,11 @@ impl Globals {
|
||||||
globals,
|
globals,
|
||||||
config,
|
config,
|
||||||
keypair: Arc::new(keypair),
|
keypair: Arc::new(keypair),
|
||||||
dns_resolver: TokioAsyncResolver::tokio_from_system_conf().map_err(|_| {
|
dns_resolver: TokioAsyncResolver::tokio_from_system_conf().map_err(|e| {
|
||||||
|
error!(
|
||||||
|
"Failed to set up trust dns resolver with system config: {}",
|
||||||
|
e
|
||||||
|
);
|
||||||
Error::bad_config("Failed to set up trust dns resolver with system config.")
|
Error::bad_config("Failed to set up trust dns resolver with system config.")
|
||||||
})?,
|
})?,
|
||||||
actual_destination_cache: Arc::new(RwLock::new(WellKnownMap::new())),
|
actual_destination_cache: Arc::new(RwLock::new(WellKnownMap::new())),
|
||||||
|
|
Loading…
Reference in a new issue