Skip to content

Commit

Permalink
Add more logs for setting errors
Browse files Browse the repository at this point in the history
Signed-off-by: yuguorui <[email protected]>
  • Loading branch information
yuguorui committed Dec 30, 2024
1 parent 278a183 commit 166f94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use anyhow::Result;

lazy_static! {
static ref SETTINGS: Arc<RwLock<Settings>> =
Arc::new(RwLock::const_new(Settings::new().unwrap()));
Arc::new(RwLock::const_new(Settings::new().expect("Failed to load settings")));
}

async fn flatten(handle: JoinHandle<Result<()>>) -> Result<()> {
Expand Down

0 comments on commit 166f94b

Please sign in to comment.