Truncate inbox response text before logging it

This commit is contained in:
silverpill 2022-09-04 11:57:31 +00:00
parent d2366589cf
commit ed98648756

View file

@ -64,7 +64,8 @@ async fn send_activity(
} else { } else {
let response = request.send().await?; let response = request.send().await?;
let response_status = response.status(); let response_status = response.status();
let response_text = response.text().await?; let response_text: String = response.text().await?
.chars().take(30).collect();
log::info!( log::info!(
"response from {}: {}", "response from {}: {}",
inbox_url, inbox_url,