[PATCH 1/2] Log the reason if GUI import fails (#1229747)

Martin Kolman mkolman at redhat.com
Tue Jun 16 16:23:09 UTC 2015


Log the exception that caused the import to fail.

Related: rhbz#1229747
Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 initial_setup/__main__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/initial_setup/__main__.py b/initial_setup/__main__.py
index 06b6ea5..642e93c 100644
--- a/initial_setup/__main__.py
+++ b/initial_setup/__main__.py
@@ -108,7 +108,7 @@ if mode == "gui":
         log.debug("trying to import GUI")
         import gui
     except ImportError:
-        log.error("GUI import failed, falling back to TUI")
+        log.exception("GUI import failed, falling back to TUI")
         mode = "tui"
 
 if mode == "gui":
-- 
2.4.2



More information about the anaconda-patches mailing list