Revert "Initialize Rocket early to initialize logger early"

This reverts commit 30093d3a9f.
This commit is contained in:
Kitaiti Makoto 2021-01-09 18:41:47 +09:00
parent 8539bdaf72
commit b93ebedaf3

View File

@ -83,8 +83,6 @@ and https://docs.joinplu.me/installation/init for more info.
"#, "#,
) )
.get_matches(); .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"); let dbpool = init_pool().expect("main: database pool initialization error");
if IMPORTED_MIGRATIONS if IMPORTED_MIGRATIONS
.is_pending(&dbpool.get().unwrap()) .is_pending(&dbpool.get().unwrap())
@ -178,7 +176,7 @@ Then try to restart Plume
warn!("Please refer to the documentation to see how to configure it."); warn!("Please refer to the documentation to see how to configure it.");
} }
let rocket = rocket let rocket = rocket::custom(CONFIG.rocket.clone().unwrap())
.mount( .mount(
"/", "/",
routes![ routes![