Improved logging, UI tweaks.
This commit is contained in:
+2
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user