[gnome-photos/wip/rishi/tracker-notifier: 4/5] item-manager: Log the events from the TrackerNotifier
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/tracker-notifier: 4/5] item-manager: Log the events from the TrackerNotifier
- Date: Thu, 4 Mar 2021 18:02:57 +0000 (UTC)
commit 6836fe71dcc7cb51e24fd1f19a9b1610e78defcb
Author: Sam Thursfield <sam afuera me uk>
Date: Thu Mar 4 15:37:05 2021 +0100
item-manager: Log the events from the TrackerNotifier
https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/166
src/photos-item-manager.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 1c8056c9..278efbb2 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -532,10 +532,17 @@ photos_item_manager_notifier_events_foreach (gpointer data, gpointer user_data)
PhotosItemManager *self = PHOTOS_ITEM_MANAGER (user_data);
TrackerNotifierEvent *event = (TrackerNotifierEvent *) data;
TrackerNotifierEventType event_type;
+ const gchar *event_rdf_type;
const gchar *event_urn;
+ event_rdf_type = tracker_notifier_event_get_type (event);
event_type = tracker_notifier_event_get_event_type (event);
event_urn = tracker_notifier_event_get_urn (event);
+ photos_debug (PHOTOS_DEBUG_TRACKER,
+ "Received TrackerNotifierEvent (%d): RDF type %s, URN %s",
+ event_type,
+ event_rdf_type,
+ event_urn);
if (event_type == TRACKER_NOTIFIER_EVENT_UPDATE)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]