From b93ebedaf3bc5549daf7607051d14c639368a3f6 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sat, 9 Jan 2021 18:41:47 +0900 Subject: [PATCH] Revert "Initialize Rocket early to initialize logger early" This reverts commit 30093d3a9f80a31a4d656f984aa155adf082e521. --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 23e24799..845bafac 100755 --- a/src/main.rs +++ b/src/main.rs @@ -83,8 +83,6 @@ 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()) @@ -178,7 +176,7 @@ Then try to restart Plume warn!("Please refer to the documentation to see how to configure it."); } - let rocket = rocket + let rocket = rocket::custom(CONFIG.rocket.clone().unwrap()) .mount( "/", routes![