mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-03-13 18:42:40 +00:00
Initialize Rocket early to initialize logger early
This commit is contained in:
parent
29f2239e3f
commit
30093d3a9f
1 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,8 @@ and https://docs.joinplu.me/installation/init for more info.
|
|||
"#,
|
||||
)
|
||||
.get_matches();
|
||||
// Initialize Rocket early to load its internal logger
|
||||
let rocket = rocket::custom(CONFIG.rocket.clone().unwrap());
|
||||
let dbpool = init_pool().expect("main: database pool initialization error");
|
||||
if IMPORTED_MIGRATIONS
|
||||
.is_pending(&dbpool.get().unwrap())
|
||||
|
@ -175,7 +177,7 @@ Then try to restart Plume
|
|||
println!("Please refer to the documentation to see how to configure it.");
|
||||
}
|
||||
|
||||
let rocket = rocket::custom(CONFIG.rocket.clone().unwrap())
|
||||
let rocket = rocket
|
||||
.mount(
|
||||
"/",
|
||||
routes![
|
||||
|
|
Loading…
Reference in a new issue