[gnome-builder] workbench: log information about project loading
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: log information about project loading
- Date: Fri, 14 Jun 2019 18:20:33 +0000 (UTC)
commit 13ddd63a3df85e788765b5f6c8e72871492a61c0
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 14 11:20:23 2019 -0700
workbench: log information about project loading
src/libide/gui/ide-workbench.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/src/libide/gui/ide-workbench.c b/src/libide/gui/ide-workbench.c
index f3544b586..f1a1d31ce 100644
--- a/src/libide/gui/ide-workbench.c
+++ b/src/libide/gui/ide-workbench.c
@@ -1239,6 +1239,20 @@ ide_workbench_load_project_async (IdeWorkbench *self,
name = g_file_get_basename (directory);
ide_context_set_title (self->context, name);
+ {
+ GFile *pdir = ide_project_info_get_directory (project_info);
+ GFile *pfile = ide_project_info_get_file (project_info);
+ const gchar *pident = ide_project_info_get_id (project_info);
+ const gchar *pname = ide_project_info_get_name (project_info);
+
+ /* Log some information to help track down project loading issues. */
+ g_debug ("Loading project");
+ g_debug (" id = %s", pname);
+ g_debug (" name = %s", pident);
+ g_debug (" dir = %s", g_file_peek_path (pdir));
+ g_debug (" file = %s", g_file_peek_path (pfile));
+ }
+
/* If there has not been a project name set, make the default matching
* the directory name. A plugin may update the name with more information
* based on .doap files, etc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]