[gnome-photos/wip/rishi/collection: 9/45] tracker-queue: Log when a query has been processed



commit ed115c4277186156b1a7c33a80e59ef4033333ff
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Feb 10 02:54:58 2018 +0100

    tracker-queue: Log when a query has been processed
    
    Sometimes, under heavy load, such as when importing simultaneously from
    two attached devices, there is no response to a query submitted
    through the TrackerSparqlConnection. This is meant to help debug such
    situations.
    
    https://gitlab.gnome.org/GNOME/gnome-photos/issues/29

 src/photos-tracker-queue.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/photos-tracker-queue.c b/src/photos-tracker-queue.c
index 936bbc41..0d0cc810 100644
--- a/src/photos-tracker-queue.c
+++ b/src/photos-tracker-queue.c
@@ -144,6 +144,8 @@ photos_tracker_queue_collector (GObject *source_object, GAsyncResult *res, gpoin
   PhotosTrackerQueue *self = PHOTOS_TRACKER_QUEUE (user_data);
   PhotosTrackerQueueData *data;
 
+  photos_debug (PHOTOS_DEBUG_TRACKER, "Query processed");
+
   data = g_queue_pop_head (self->queue);
   if (data->callback != NULL)
     (*data->callback) (source_object, res, data->user_data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]