diff options
Diffstat (limited to '')
| -rw-r--r-- | src/command/server.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/command/server.rs b/src/command/server.rs index 9d97e928..cd05caca 100644 --- a/src/command/server.rs +++ b/src/command/server.rs @@ -1,5 +1,5 @@ use clap::Parser; -use eyre::Result; +use eyre::{Context, Result}; use atuin_server::launch; use atuin_server::settings::Settings; @@ -20,7 +20,11 @@ pub enum Cmd { } impl Cmd { - pub async fn run(&self, settings: Settings) -> Result<()> { + pub async fn run(self) -> Result<()> { + pretty_env_logger::init(); + + let settings = Settings::new().wrap_err("could not load server settings")?; + match self { Self::Start { host, port } => { let host = host |
