summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-10-01 17:19:46 -0400
committerChris Lumens <clumens@redhat.com>2008-10-01 17:19:46 -0400
commit8fc99d649aaf21b991efc18bd4b84dc11faf99e2 (patch)
tree1d5ff709b01a9ad6afdf2a922ac1b23fa59ec197
parentd7898c1527b928323ab25325f9c304ce3cd92230 (diff)
downloadanaconda-8fc99d649aaf21b991efc18bd4b84dc11faf99e2.tar.gz
anaconda-8fc99d649aaf21b991efc18bd4b84dc11faf99e2.tar.xz
anaconda-8fc99d649aaf21b991efc18bd4b84dc11faf99e2.zip
If there's an error running Xvnc, also print it to the console.
This is only "helpful" in the weird case where you try to run anaconda in vnc mode on the livecd or similar environment, where there is no Xvnc.
-rw-r--r--vnc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnc.py b/vnc.py
index 37833040b..c0dc83df1 100644
--- a/vnc.py
+++ b/vnc.py
@@ -36,6 +36,7 @@ _ = lambda x: gettext.ldgettext("anaconda", x)
import logging
log = logging.getLogger("anaconda")
+stdoutLog = logging.getLogger("anaconda.stdout")
class VncServer:
@@ -229,7 +230,7 @@ class VncServer:
try:
xvncp = subprocess.Popen(xvnccommand, stdout=self.openlogfile(), stderr=subprocess.STDOUT)
except:
- log.critical("Could not start the VNC server. Aborting.")
+ stdoutLog.critical("Could not start the VNC server. Aborting.")
sys.exit(1)
# Lets give the xvnc time to initialize