[gnome-builder] libide: log load and save file for back-forward-list



commit f4352430c25338f47af8b9f3d92af6672f96e5ef
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 12 22:54:09 2015 -0700

    libide: log load and save file for back-forward-list

 libide/ide-back-forward-list.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-back-forward-list.c b/libide/ide-back-forward-list.c
index 6295487..e9317c1 100644
--- a/libide/ide-back-forward-list.c
+++ b/libide/ide-back-forward-list.c
@@ -573,6 +573,15 @@ _ide_back_forward_list_save_async (IdeBackForwardList  *self,
   g_assert (G_IS_FILE (file));
   g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
 
+#ifndef IDE_DISABLE_TRACE
+  {
+    g_autofree gchar *path = NULL;
+
+    path = g_file_get_path (file);
+    IDE_TRACE_MSG ("Saving %s", path);
+  }
+#endif
+
   task = g_task_new (self, cancellable, callback, user_data);
 
   /* generate the file content */
@@ -731,6 +740,15 @@ _ide_back_forward_list_load_async (IdeBackForwardList  *self,
   g_assert (G_IS_FILE (file));
   g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
 
+#ifndef IDE_DISABLE_TRACE
+  {
+    g_autofree gchar *path = NULL;
+
+    path = g_file_get_path (file);
+    IDE_TRACE_MSG ("Loading %s", path);
+  }
+#endif
+
   task = g_task_new (self, cancellable, callback, user_data);
 
   g_file_load_contents_async (file,


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