diff options
Diffstat (limited to 'virtManager/vmmenu.py')
-rw-r--r-- | virtManager/vmmenu.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/virtManager/vmmenu.py b/virtManager/vmmenu.py index a5b283d0..a5b4410f 100644 --- a/virtManager/vmmenu.py +++ b/virtManager/vmmenu.py @@ -4,10 +4,10 @@ # This work is licensed under the GNU GPLv2 or later. # See the COPYING file in the top-level directory. -import logging - from gi.repository import Gtk +from virtinst import log + from .asyncjob import vmmAsyncJob @@ -159,14 +159,14 @@ class VMActionUI(object): @staticmethod def save_cancel(asyncjob, vm): - logging.debug("Cancelling save job") + log.debug("Cancelling save job") if not vm: return try: vm.abort_job() except Exception as e: - logging.exception("Error cancelling save job") + log.exception("Error cancelling save job") asyncjob.show_warning(_("Error cancelling save job: %s") % str(e)) return @@ -209,7 +209,7 @@ class VMActionUI(object): "shutting down the OS and may cause data loss.")): return - logging.debug("Destroying vm '%s'", vm.get_name()) + log.debug("Destroying vm '%s'", vm.get_name()) vmmAsyncJob.simple_async_noshow(vm.destroy, [], src, _("Error shutting down domain")) @@ -221,19 +221,19 @@ class VMActionUI(object): vm.get_name())): return - logging.debug("Pausing vm '%s'", vm.get_name()) + log.debug("Pausing vm '%s'", vm.get_name()) vmmAsyncJob.simple_async_noshow(vm.suspend, [], src, _("Error pausing domain")) @staticmethod def resume(src, vm): - logging.debug("Unpausing vm '%s'", vm.get_name()) + log.debug("Unpausing vm '%s'", vm.get_name()) vmmAsyncJob.simple_async_noshow(vm.resume, [], src, _("Error unpausing domain")) @staticmethod def run(src, vm): - logging.debug("Starting vm '%s'", vm.get_name()) + log.debug("Starting vm '%s'", vm.get_name()) if vm.has_managed_save(): def errorcb(error, details): @@ -278,7 +278,7 @@ class VMActionUI(object): vm.get_name())): return - logging.debug("Shutting down vm '%s'", vm.get_name()) + log.debug("Shutting down vm '%s'", vm.get_name()) vmmAsyncJob.simple_async_noshow(vm.shutdown, [], src, _("Error shutting down domain")) @@ -290,7 +290,7 @@ class VMActionUI(object): vm.get_name())): return - logging.debug("Rebooting vm '%s'", vm.get_name()) + log.debug("Rebooting vm '%s'", vm.get_name()) vmmAsyncJob.simple_async_noshow(vm.reboot, [], src, _("Error rebooting domain")) @@ -305,7 +305,7 @@ class VMActionUI(object): "shutting down the OS and may cause data loss.")): return - logging.debug("Resetting vm '%s'", vm.get_name()) + log.debug("Resetting vm '%s'", vm.get_name()) vmmAsyncJob.simple_async_noshow(vm.reset, [], src, _("Error resetting domain")) |