[gnome-boxes] libvirt-machine: More debug log from get_ip_address()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: More debug log from get_ip_address()
- Date: Thu, 24 Sep 2015 18:07:34 +0000 (UTC)
commit 4e19334679c3e3fb374d67c2d2af8b4d0cc77fc1
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]