[PATCH 1/5] Add logging around the messages that can be processed by the hub.
Chris Lumens
clumens at redhat.com
Fri Nov 9 21:14:54 UTC 2012
---
pyanaconda/ui/gui/hubs/__init__.py | 6 ++++++
pyanaconda/ui/gui/spokes/source.py | 1 -
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/hubs/__init__.py b/pyanaconda/ui/gui/hubs/__init__.py
index ecd9027..ea385de 100644
--- a/pyanaconda/ui/gui/hubs/__init__.py
+++ b/pyanaconda/ui/gui/hubs/__init__.py
@@ -31,6 +31,9 @@ from pyanaconda.ui.gui import GUIObject
from pyanaconda.ui.gui.categories import collect_categories
from pyanaconda.ui.gui.spokes import StandaloneSpoke, collect_spokes
+import logging
+log = logging.getLogger("anaconda")
+
class Hub(GUIObject, common.Hub):
"""A Hub is an overview UI screen. A Hub consists of one or more grids of
configuration options that the user may choose from. Each grid is
@@ -258,6 +261,7 @@ class Hub(GUIObject, common.Hub):
self._notReadySpokes.append(spoke)
self._updateContinueButton()
+ log.info("spoke is not ready: %s" % spoke)
elif code == communication.HUB_CODE_READY:
self._updateCompleteness(spoke)
@@ -265,6 +269,7 @@ class Hub(GUIObject, common.Hub):
self._notReadySpokes.remove(spoke)
self._updateContinueButton()
+ log.info("spoke is ready: %s" % spoke)
# If this is a real kickstart install (the kind with an input ks file)
# and all spokes are now completed, we should skip ahead to the next
@@ -285,6 +290,7 @@ class Hub(GUIObject, common.Hub):
self.continueButton.emit("clicked")
elif code == communication.HUB_CODE_MESSAGE:
spoke.selector.set_property("status", args[1])
+ log.info("setting %s status to: %s" % (spoke, args[1]))
q.task_done()
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 59e27f9..c26210d 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -560,7 +560,6 @@ class SourceSpoke(NormalSpoke):
# By default, the source spoke is not ready. We have to wait until
# storageInitialize is done to know whether or not there's local
# devices potentially holding install media.
- log.info('source spoke ready: %s' % self._ready)
return (self._ready and not threadMgr.get("AnaPayloadMDThread") and
not threadMgr.get("AnaCheckSoftwareThread"))
--
1.7.11.2
More information about the anaconda-patches
mailing list