[gnome-boxes/wip/system-libvirt-import2: 2/7] vm-creator: A bit more debug



commit 38fb4567e5a1592397aed1841c1c98cf25a4bb59
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Nov 14 16:21:16 2013 +0000

    vm-creator: A bit more debug
    
    Add a bit more debug around storage pool/volume creation code.

 src/vm-creator.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 5347d62..ad0d7c3 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -196,11 +196,13 @@ private class Boxes.VMCreator {
     protected async StoragePool get_storage_pool () throws GLib.Error {
         var pool = Boxes.get_storage_pool (connection);
         if (pool == null) {
+            debug ("Creating storage pool..");
             var config = VMConfigurator.get_pool_config ();
             pool = connection.create_storage_pool (config, 0);
             yield pool.build_async (0, null);
             yield pool.start_async (0, null);
             yield pool.refresh_async (null);
+            debug ("Created storage pool.");
         }
 
         return pool;
@@ -322,7 +324,9 @@ private class Boxes.VMCreator {
         var pool = yield get_storage_pool ();
 
         var config = VMConfigurator.create_volume_config (name, storage);
+        debug ("Creating volume '%s'..", name);
         var volume = pool.create_volume (config);
+        debug ("Created volume '%s'.", name);
 
         return volume;
     }


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