Skip to content

Commit

Permalink
Log max expiration time at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones authored and matze committed Oct 26, 2024
1 parent 26841fb commit 1b9c93a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ async fn start() -> Result<(), Box<dyn std::error::Error>> {
tracing::debug!("serving on {addr}");
tracing::debug!("caching {cache_size} paste highlights");
tracing::debug!("restricting maximum body size to {max_body_size} bytes");
tracing::debug!("enforcing a http timeout of {timeout:#?}");
tracing::debug!("maximum expiration time of {max_expiration:?} seconds");

let service = make_app(max_body_size, timeout).with_state(state);
let listener = TcpListener::bind(&addr).await?;
Expand Down

0 comments on commit 1b9c93a

Please sign in to comment.