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

@@ -8,7 +8,8 @@ fn main() {
use tokio::runtime::Runtime;
use trust_dns_resolver::{TokioAsyncResolver, TokioHandle};
env_logger::init();
let subscriber = tracing_subscriber::FmtSubscriber::builder().finish();
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
// Set up the standard tokio runtime (multithreaded by default).
let runtime = Runtime::new().expect("Failed to create runtime");