1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-06 03:50:08 +02:00

cleanup logging

This commit is contained in:
B. Petersen 2018-06-18 21:50:20 +02:00
parent fe44ea0cb0
commit 83f3a3480f
2 changed files with 6 additions and 6 deletions

View file

@ -306,7 +306,7 @@ mrmailbox_t* mrchatlist_get_mailbox(mrchatlist_t* chatlist)
*/
int mrchatlist_load_from_db__(mrchatlist_t* ths, int listflags, const char* query__, uint32_t query_contact_id)
{
clock_t start = clock();
//clock_t start = clock();
int success = 0;
int add_archived_link_item = 0;
@ -391,7 +391,7 @@ int mrchatlist_load_from_db__(mrchatlist_t* ths, int listflags, const char* quer
success = 1;
cleanup:
mrmailbox_log_info(ths->m_mailbox, 0, "Chatlist for search \"%s\" created in %.3f ms.", query__?query__:"", (double)(clock()-start)*1000.0/CLOCKS_PER_SEC);
//mrmailbox_log_info(ths->m_mailbox, 0, "Chatlist for search \"%s\" created in %.3f ms.", query__?query__:"", (double)(clock()-start)*1000.0/CLOCKS_PER_SEC);
free(query);
free(strLikeCmd);

View file

@ -1249,7 +1249,7 @@ cleanup:
*/
mrarray_t* mrmailbox_get_chat_msgs(mrmailbox_t* mailbox, uint32_t chat_id, uint32_t flags, uint32_t marker1before)
{
clock_t start = clock();
//clock_t start = clock();
int success = 0, locked = 0;
mrarray_t* ret = mrarray_new(mailbox, 512);
@ -1335,7 +1335,7 @@ mrarray_t* mrmailbox_get_chat_msgs(mrmailbox_t* mailbox, uint32_t chat_id, uint3
cleanup:
if( locked ) { mrsqlite3_unlock(mailbox->m_sql); }
mrmailbox_log_info(mailbox, 0, "Message list for chat #%i created in %.3f ms.", chat_id, (double)(clock()-start)*1000.0/CLOCKS_PER_SEC);
//mrmailbox_log_info(mailbox, 0, "Message list for chat #%i created in %.3f ms.", chat_id, (double)(clock()-start)*1000.0/CLOCKS_PER_SEC);
if( success ) {
return ret;
@ -1372,7 +1372,7 @@ cleanup:
*/
mrarray_t* mrmailbox_search_msgs(mrmailbox_t* mailbox, uint32_t chat_id, const char* query)
{
clock_t start = clock();
//clock_t start = clock();
int success = 0, locked = 0;
mrarray_t* ret = mrarray_new(mailbox, 100);
@ -1445,7 +1445,7 @@ cleanup:
free(strLikeBeg);
free(real_query);
mrmailbox_log_info(mailbox, 0, "Message list for search \"%s\" in chat #%i created in %.3f ms.", query, chat_id, (double)(clock()-start)*1000.0/CLOCKS_PER_SEC);
//mrmailbox_log_info(mailbox, 0, "Message list for search \"%s\" in chat #%i created in %.3f ms.", query, chat_id, (double)(clock()-start)*1000.0/CLOCKS_PER_SEC);
if( success ) {