improvement: more logging

This commit is contained in:
Timo Kösters 2020-11-15 12:17:21 +01:00
parent 9439f2c183
commit 6e36081573
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
7 changed files with 26 additions and 11 deletions

View file

@ -61,9 +61,9 @@ where
return Err(Error::bad_config("Federation is disabled."));
}
let resolver = AsyncResolver::tokio_from_system_conf()
.await
.map_err(|_| Error::bad_config("Failed to set up trust dns resolver with system config."))?;
let resolver = AsyncResolver::tokio_from_system_conf().await.map_err(|_| {
Error::bad_config("Failed to set up trust dns resolver with system config.")
})?;
let mut host = None;