Improved logging, UI tweaks.

This commit is contained in:
2024-02-23 14:00:31 +01:00
parent 2119c2e56b
commit 676951e809
12 changed files with 64 additions and 13 deletions
+2 -2
View File
@@ -42,12 +42,12 @@ async fn main() -> std::io::Result<()> {
Pow::init_random().expect("Cannot init captcha");
let cfg_path = matches.opt_str("c").unwrap_or("config.toml".to_string());
let srv_conf = load_config(&cfg_path);
env_logger::Builder::from_env(Env::default().default_filter_or("debug")).init();
env_logger::Builder::from_env(Env::default().default_filter_or(srv_conf.logging().severity())).init();
info!("Starting server");
let conf = get_configuration(None).await.unwrap();
let srv_conf = load_config(&cfg_path);
// Generate the list of routes in your Leptos App
let routes = generate_route_list(|| view! { <App/> });
let key = Key::from(srv_conf.session().key());