Changed log levels to make alfis less chatty.

This commit is contained in:
Revertron
2021-04-03 18:29:41 +02:00
parent f9e90ff655
commit 6dae3e41c0
5 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -43,16 +43,16 @@ fn create_server_context(context: Arc<Mutex<Context>>, settings: &Settings) -> A
if cfg!(target_os = "windows") {
if let Ok(root) = env::var("SYSTEMROOT") {
let filename = format!("{}{}", &root, "\\System32\\drivers\\etc\\hosts");
info!("Loading hosts from '{}'", &filename);
debug!("Loading hosts from '{}'", &filename);
server_context.filters.push(Box::new(HostsFilter::new(&filename)));
}
} else {
let filename = "/etc/hosts";
info!("Loading hosts from '{}'", filename);
debug!("Loading hosts from '{}'", filename);
server_context.filters.push(Box::new(HostsFilter::new(filename)));
}
} else {
info!("Loading hosts from '{}'", &host);
debug!("Loading hosts from '{}'", &host);
server_context.filters.push(Box::new(HostsFilter::new(host)));
}
}