reduce log volume (keeps 2 infos)

adjust log volume

demote a bunch of logs
This commit is contained in:
Jacob Taylor 2025-08-25 20:51:55 -07:00
commit 753f8aabae
3 changed files with 6 additions and 6 deletions

View file

@ -79,7 +79,7 @@ pub(crate) async fn send_transaction_message_route(
}
let txn_start_time = Instant::now();
info!(
trace!(
pdus = body.pdus.len(),
edus = body.edus.len(),
id = ?body.transaction_id,
@ -102,7 +102,7 @@ pub(crate) async fn send_transaction_message_route(
.filter_map(Result::ok)
.stream();
info!(
trace!(
pdus = body.pdus.len(),
edus = body.edus.len(),
elapsed = ?txn_start_time.elapsed(),
@ -198,7 +198,7 @@ async fn handle_room(
.and_then(|(_, event_id, value)| async move {
services.server.check_running()?;
let pdu_start_time = Instant::now();
info!(
trace!(
%room_id,
%event_id,
pdu = n + 1,

View file

@ -4,7 +4,7 @@ use std::{
};
use conduwuit::{
Event, PduEvent, debug, debug_error, debug_warn, implement,
Event, PduEvent, debug, debug_error, implement,
matrix::event::gen_event_id_canonical_json, trace, utils::continue_exponential_backoff_secs,
warn,
};

View file

@ -882,7 +882,7 @@ impl Service {
.execute_on(&self.services.client.sender, &server, request)
.await
.inspect(|_| {
info!(%txn_id, %server, "Sent {} PDUs, {} EDUs", pdu_count, edu_count);
trace!(%txn_id, %server, "Sent {} PDUs, {} EDUs", pdu_count, edu_count);
})
.inspect_err(|e| {
info!(%txn_id, %server, "Failed to send transaction ({} PDUs, {} EDUs): {e:?}", pdu_count, edu_count);
@ -890,7 +890,7 @@ impl Service {
for (event_id, result) in result.iter().flat_map(|resp| resp.pdus.iter()) {
if let Err(e) = result {
warn!(
trace!(
%txn_id, %server,
"error sending PDU {event_id} to remote server: {e:?}"
);