Skip to content

Commit

Permalink
remove additional tracing for now
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman committed Aug 8, 2022
1 parent 2112685 commit c3dfb41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,15 @@ where
} else if session_layer.save_unchanged || session_data_changed {
match session_layer.store.store_session(session).await {
Ok(Some(cookie_value)) => {
tracing::debug!("Cookie value found. Appending set cookie headers.");
let cookie = session_layer.build_cookie(session_layer.secure, cookie_value);
response.headers_mut().insert(
SET_COOKIE,
HeaderValue::from_str(&cookie.to_string()).unwrap(),
);
}

Ok(None) => {
tracing::warn!("The cookie value is missing; no cookie will be set!");
}
Ok(None) => {}

Err(e) => {
tracing::error!("Failed to reach session storage: {:?}", e);
Expand Down

0 comments on commit c3dfb41

Please sign in to comment.