aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command/server.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/command/server.rs b/src/command/server.rs
index cd05caca..c5af9ae5 100644
--- a/src/command/server.rs
+++ b/src/command/server.rs
@@ -1,3 +1,5 @@
+use tracing_subscriber::{fmt, prelude::*, EnvFilter};
+
use clap::Parser;
use eyre::{Context, Result};
@@ -21,7 +23,10 @@ pub enum Cmd {
impl Cmd {
pub async fn run(self) -> Result<()> {
- pretty_env_logger::init();
+ tracing_subscriber::registry()
+ .with(fmt::layer())
+ .with(EnvFilter::from_default_env())
+ .init();
let settings = Settings::new().wrap_err("could not load server settings")?;