aboutsummaryrefslogtreecommitdiff
path: root/src/dns_updater.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns_updater.rs')
-rw-r--r--src/dns_updater.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dns_updater.rs b/src/dns_updater.rs
index 06ba408..d781671 100644
--- a/src/dns_updater.rs
+++ b/src/dns_updater.rs
@@ -1,10 +1,11 @@
use std::net::{Ipv4Addr, Ipv6Addr};
use std::sync::Arc;
+use std::time::Duration;
use anyhow::{anyhow, bail, Result};
-use log::*;
use tokio::select;
use tokio::sync::watch;
+use tracing::*;
use crate::dns_config::*;
use crate::provider::DnsProvider;
@@ -15,6 +16,10 @@ pub async fn dns_updater_task(
allowed_domains: Vec<String>,
mut must_exit: watch::Receiver<bool>,
) {
+ info!("DNS updater will start in 5 seconds");
+ tokio::time::sleep(Duration::from_secs(5)).await;
+ info!("DNS updater starting");
+
let mut config = Arc::new(DnsConfig::new());
while !*must_exit.borrow() {
select!(