commit:     6b4f6861ad9847fe5c1be5c60167578f2404e11d
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 19 03:27:14 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon Sep 19 03:27:14 2016 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=6b4f6861

base/stagebase.py: Add 2 more debug logs for arch loading modules.

 catalyst/base/stagebase.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 904103f..68ccb79 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -74,6 +74,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                machinemap = {}
                arch_dir = self.settings["archdir"] + "/"
                for x in [x[:-3] for x in os.listdir(arch_dir) if 
x.endswith(".py") and x != "__init__.py"]:
+                       log.debug("Begin loading arch modules...")
                        try:
                                fh=open(arch_dir + x + ".py")
                                # This next line loads the plugin as a module 
and assigns it to
@@ -94,6 +95,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                                # the dir should load just fine. If it doesn't, 
it's probably a
                                # syntax error in the module
                                log.warning("Can't find/load %s.py plugin in 
%s", x, arch_dir)
+                       log.debug("Loaded arch module: %s", self.archmap[x])
 
                if "chost" in self.settings:
                        hostmachine = self.settings["chost"].split("-")[0]

Reply via email to