Fixed titlebot printing the whole HTML body in the debug log

This commit is contained in:
famfo 2021-12-28 14:25:10 +01:00
parent 8f48affec3
commit c4fd66514a

View file

@ -123,7 +123,6 @@ impl Titlebot {
}
}
let body = response.text().await?;
tracing::debug!("body: {}", body);
if let Some(tm) = self.title_regex.find(&body)? {
let title_match = &body[tm.start()..tm.end()];
let result = decode_html(title_match).unwrap_or_else(|_| title_match.to_string());