GNOME Bugzilla – Bug 787833
Provide more context when logging the SPARQL queries
Last modified: 2017-09-18 15:17:10 UTC
It is possible to log the SPARQL queries being sent to Tracker using: $ G_MESSAGES_DEBUG=gnome-photos GNOME_PHOTOS_DEBUG=tracker /path/to/gnome-photos However, this only logs the raw SPARQL strings without any context. While that gives a general idea about what the application is doing, it is not not so useful when debugging more subtle issues. eg., why a certain query is being sent twice, or which view/mode is responsible for sending a query, and so on. It will be nice to annotate the logs with some contextual information.
Created attachment 359970 [details] [review] query: Support human-readable annotations for debugging
Created attachment 359971 [details] [review] query: Loosen the requirement to provide a SearchContextState
Created attachment 359972 [details] [review] Use Query objects instead of raw strings in the TrackerQueue API
Created attachment 359973 [details] [review] tracker-queue: Log each Query's source and tag fields
Created attachment 359974 [details] [review] offset-controller: Tag the Query
Created attachment 359975 [details] [review] tracker-controller: Tag the Query
Review of attachment 359970 [details] [review]: ++
Review of attachment 359971 [details] [review]: ++
Review of attachment 359972 [details] [review]: ++
Review of attachment 359973 [details] [review]: ++
Review of attachment 359974 [details] [review]: ++
Review of attachment 359975 [details] [review]: ++
Thanks for the reviews, Umang! Pushed to master.