From be5abc03f708e702c50ae03aa292afe2c7d8966d Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 23 Jun 2017 18:39:50 +0200 Subject: [PATCH] Do not flood the log with <3 heartbeat messages. --- src/mrimap.c | 4 ++-- src/mrmailbox.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mrimap.c b/src/mrimap.c index d00af2a8..fdd81731 100644 --- a/src/mrimap.c +++ b/src/mrimap.c @@ -960,7 +960,7 @@ static void* heartbeat_thread_entry_point(void* entry_arg) /* After waiting 50 seconds, call mrimap_heartbeat(). As pthread_cond_timedwait() eg. on Android does not always wake up in time when the device sleeps, you may want to call mrimap_heartbeat() (resp. mrmailbox_heartbeat()) from an additional, IDLE-safe, timer. */ - mrmailbox_log_info(ths->m_mailbox, 0, "<3 IMAP"); + //mrmailbox_log_info(ths->m_mailbox, 0, "<3 IMAP"); mrimap_heartbeat(ths); } @@ -990,7 +990,7 @@ void mrimap_heartbeat(mrimap_t* ths) && time(NULL)-ths->m_enter_watch_wait_time > (FULL_FETCH_EVERY_SECONDS+10) ) { /* force reconnect if the IDLE timeout does not arrive */ - mrmailbox_log_info(ths->m_mailbox, 0, "<3 <3 <3 <3 <3 <3 Forcing reconnect <3 <3 <3 <3 <3 <3"); + mrmailbox_log_info(ths->m_mailbox, 0, "Reconnect forced from the heartbeat thread."); ths->m_should_reconnect = 1; ths->m_enter_watch_wait_time = 0; if( ths->m_can_idle ) diff --git a/src/mrmailbox.c b/src/mrmailbox.c index 9eb00069..b9d73f16 100644 --- a/src/mrmailbox.c +++ b/src/mrmailbox.c @@ -1480,7 +1480,7 @@ void mrmailbox_heartbeat(mrmailbox_t* ths) return; } - mrmailbox_log_info(ths, 0, "<3 Mailbox"); + //mrmailbox_log_info(ths, 0, "<3 Mailbox"); mrimap_heartbeat(ths->m_imap); }