Skip to content

Commit

Permalink
chore: pretty logging in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Nov 1, 2023
1 parent f9d13a0 commit c8aa6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chuckle/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ async fn main() -> anyhow::Result<()> {
.unwrap_or_else(|_| "debug,hyper=info,tower_http=info,rustls=info".into()),
);

#[cfg(not(debug_assertions))]
let registry = registry.with(tracing_subscriber::fmt::layer().json());
// #[cfg(not(debug_assertions))]
// let registry = registry.with(tracing_subscriber::fmt::layer().json());
#[cfg(debug_assertions)]
let registry = registry.with(tracing_subscriber::fmt::layer());

Expand Down

0 comments on commit c8aa6ad

Please sign in to comment.