diff --git a/src/session.rs b/src/session.rs index f875c41..12a2c27 100644 --- a/src/session.rs +++ b/src/session.rs @@ -321,6 +321,7 @@ 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, @@ -328,9 +329,7 @@ where ); } - 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);