Skip to content

Commit

Permalink
🚧 WIP Migrate from Rocket to Axum
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBardon committed Aug 24, 2024
1 parent 4ed1d3f commit 2660d40
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/orangutan-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use tower_http::{
#[cfg(feature = "templating")]
use tracing::debug;
use tracing::{info, warn};
use tracing_subscriber::{EnvFilter, FmtSubscriber};
use tracing_subscriber::EnvFilter;
use util::WebsiteRoot;

#[cfg(feature = "templating")]
Expand Down Expand Up @@ -69,10 +69,9 @@ async fn main() -> ExitCode {
};

info!("Setting up tracing…");
let subscriber = FmtSubscriber::builder()
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.finish();
tracing::subscriber::set_global_default(subscriber).expect("Failed to set tracing subscriber.");
.init();

// Add support for templating if needed
#[cfg(feature = "templating")]
Expand Down

0 comments on commit 2660d40

Please sign in to comment.