[gnome-initial-setup/keyring: 1/2] network: Add some debug output



commit 1afcef1033f5422de58f82b5e87b83bba51f2a53
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 3 08:48:49 2014 -0500

    network: Add some debug output
    
    This was helpful in looking at how we deal with 'locally connected'
    state currently: Not very well.

 .../pages/network/gis-network-page.c               |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/network/gis-network-page.c 
b/gnome-initial-setup/pages/network/gis-network-page.c
index 92abd4c..a454184 100644
--- a/gnome-initial-setup/pages/network/gis-network-page.c
+++ b/gnome-initial-setup/pages/network/gis-network-page.c
@@ -549,11 +549,15 @@ gis_network_page_constructed (GObject *object)
     }
   }
 
-  if (priv->nm_device == NULL)
+  if (priv->nm_device == NULL) {
+    g_debug ("No network device found, hiding network page");
     goto out;
+  }
 
-  if (nm_device_get_state (priv->nm_device) == NM_DEVICE_STATE_ACTIVATED)
+  if (nm_device_get_state (priv->nm_device) == NM_DEVICE_STATE_ACTIVATED) {
+    g_debug ("Activated network device found, hiding network page");
     goto out;
+  }
 
   visible = TRUE;
   priv->nm_settings = nm_remote_settings_new (NULL);


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