Private
Public Access
1
0

Less chattier log when syncing

This commit is contained in:
2025-05-03 22:13:03 -07:00
parent d843127c6d
commit 8e87c2bce2
2 changed files with 4 additions and 4 deletions

View File

@@ -354,7 +354,7 @@ impl Daemon {
}
async fn sync_conversation_impl(database: &mut Arc<Mutex<Database>>, signal_sender: &Sender<Signal>, conversation_id: String) -> Result<()> {
log::info!(target: target::SYNC, "Starting conversation sync for {}", conversation_id);
log::debug!(target: target::SYNC, "Starting conversation sync for {}", conversation_id);
let mut client = Self::get_client_impl(database).await?;
@@ -391,7 +391,7 @@ impl Daemon {
signal_sender.send(Signal::MessagesUpdated(conversation_id.clone())).await?;
}
log::info!(target: target::SYNC, "Synchronized {} messages for conversation {}", num_messages, &conversation_id);
log::debug!(target: target::SYNC, "Synchronized {} messages for conversation {}", num_messages, &conversation_id);
Ok(())
}

View File

@@ -58,7 +58,7 @@ async fn main() {
while let Some(signal) = signal_receiver.recv().await {
match signal {
Signal::ConversationsUpdated => {
log::info!("Sending signal: ConversationsUpdated");
log::debug!("Sending signal: ConversationsUpdated");
endpoint.send_signal(interface::OBJECT_PATH, DbusSignals::ConversationsUpdated{})
.unwrap_or_else(|_| {
log::error!("Failed to send signal");
@@ -67,7 +67,7 @@ async fn main() {
}
Signal::MessagesUpdated(conversation_id) => {
log::info!("Sending signal: MessagesUpdated for conversation {}", conversation_id);
log::debug!("Sending signal: MessagesUpdated for conversation {}", conversation_id);
endpoint.send_signal(interface::OBJECT_PATH, DbusSignals::MessagesUpdated{ conversation_id })
.unwrap_or_else(|_| {
log::error!("Failed to send signal");