1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 19:42:04 +02:00

Do not flood the log with <3 heartbeat messages.

This commit is contained in:
B. Petersen 2017-06-23 18:39:50 +02:00
parent 7eb5460ce6
commit be5abc03f7
2 changed files with 3 additions and 3 deletions

View file

@ -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 )

View file

@ -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);
}