[gnome-boxes/gnome-3-18] libvirt-machine: More debug log from get_ip_address()



commit 6ef162c1b883b2fd7ad3e73b683cead82497ce0e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Sep 24 19:06:27 2015 +0100

    libvirt-machine: More debug log from get_ip_address()

 src/libvirt-machine.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 30e9ef2..c136731 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -674,6 +674,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
         var mac = get_mac_address ();
         if (mac == null)
             return null;
+        debug ("MAC address of '%s': %s", name, mac);
 
         foreach (var network in system_virt_connection.get_networks ()) {
             try {
@@ -681,6 +682,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
 
                 if (leases.length () == 0 || leases.data.get_iface () != "virbr0")
                     continue;
+                debug ("Found a lease for '%s' on network '%s'", name, network.get_name ());
 
                 // Get first IP in the list
                 return leases.data.get_ip ();
@@ -690,6 +692,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
                          error.message);
             }
         }
+        debug ("No lease for '%s' on any network", name);
 
         return null;
     }


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