Changed log levels to make alfis less chatty.
This commit is contained in:
1 parent
f9e90ff655
commit
6dae3e41c0
5 files changed
+10
-10
No files matched your search
+3
-3
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user