server/session_handler: remove response clone for tracing
All checks were successful
Build and test / check (push) Successful in 1m51s
Build and test / build (push) Successful in 3m41s
Build and test / test (push) Successful in 3m49s
Build and test / docs (push) Successful in 5m42s
Build and test / check-license (push) Successful in 1m14s

This commit is contained in:
2025-12-23 12:35:09 +09:00
parent c75fbebd31
commit c866400b4a

View File

@@ -403,14 +403,13 @@ async fn session_handler_with_db_connection(
}
};
// TODO: don't clone the response
let response_to_display = match &response {
Response::SetUserPassword(Err(SetPasswordError::MySqlError(_))) => {
Response::SetUserPassword(Err(SetPasswordError::MySqlError(
&Response::SetUserPassword(Err(SetPasswordError::MySqlError(
"<REDACTED>".to_string(),
)))
}
response => response.to_owned(),
response => response,
};
tracing::debug!("Response: {:#?}", response_to_display);