Move log to tracing package
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
This commit is contained in:

committed by
Benjamin Fry

parent
fab0b6aa6e
commit
77a821f52b
@@ -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");
|
||||
|
Reference in New Issue
Block a user