Less chattier log when syncing
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user