[gnome-builder] app: add debug logging when resolving help



commit 067a71261947ff53e57aa1f0062d087ae1a6262d
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 8 12:28:23 2018 -0700

    app: add debug logging when resolving help

 src/libide/application/ide-application-actions.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/src/libide/application/ide-application-actions.c 
b/src/libide/application/ide-application-actions.c
index 2698cece5..8a2a2eb2e 100644
--- a/src/libide/application/ide-application-actions.c
+++ b/src/libide/application/ide-application-actions.c
@@ -184,10 +184,13 @@ ide_application_actions_help_cb (GObject      *object,
    */
   if (g_network_monitor_can_reach_finish (monitor, result, NULL))
     {
+      g_debug ("Can reach documentation site, opening online");
       if (gtk_show_uri_on_window (focused_window, DOCS_URI, gtk_get_current_event_time (), NULL))
         IDE_EXIT;
     }
 
+  g_debug ("Cannot reach online documentation, trying locally");
+
   /*
    * We failed to reach the online site for some reason (offline, transient error, etc),
    * so instead try to load the local documentation.
@@ -203,10 +206,16 @@ ide_application_actions_help_cb (GObject      *object,
       else
         uri = "file://"PACKAGE_DOCDIR"/en/index.html";
 
+      g_debug ("Documentation URI: %s", uri);
+
       if (!gtk_show_uri_on_window (focused_window, uri, gtk_get_current_event_time (), &error))
         g_warning ("Failed to load documentation: %s", error->message);
+
+      IDE_EXIT;
     }
 
+  g_debug ("No locally installed documentation to display");
+
   IDE_EXIT;
 }
 


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