Commit 318f26bd7de10618747f37c3ee5edd4d6e6cd48d

Authored by Matti Virkkunen
1 parent 06e7f62e

Add logging for history fetches (#11)

Showing 1 changed file with 6 additions and 0 deletions
libpurple/purpleline.cpp
... ... @@ -503,6 +503,10 @@ void PurpleLine::fetch_conversation_history(PurpleConversation *conv, int count,
503 503 if (end_seq_p)
504 504 end_seq = *end_seq_p;
505 505  
  506 + purple_debug_info("line",
  507 + "Fetching history: end_seq=%" G_GINT64_FORMAT " , count=%d, requested=%d\n",
  508 + end_seq, count, requested);
  509 +
506 510 if (end_seq != -1)
507 511 c_out->send_getPreviousMessages(name, end_seq - 1, count);
508 512 else
... ... @@ -601,6 +605,8 @@ void PurpleLine::fetch_conversation_history(PurpleConversation *conv, int count,
601 605 delete end_seq_p;
602 606  
603 607 purple_conversation_set_data(conv, "line-end-seq", new int64_t(new_end_seq));
  608 +
  609 + purple_debug_info("line", "History done: new_end_seq=%" G_GINT64_FORMAT "\n", new_end_seq);
604 610 });
605 611 }
606 612  
... ...