diff options
author | Chris Lumens <clumens@redhat.com> | 2005-08-16 15:56:25 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-08-16 15:56:25 +0000 |
commit | 3895ac98b21ba1f52f57e274910121443afb8bec (patch) | |
tree | 3e17bf381375d7d8f76a4b97ee56fcb4f36f8803 /anaconda | |
parent | fece6393a9765b0a6dafac496571ca0545a686a3 (diff) | |
download | anaconda-3895ac98b21ba1f52f57e274910121443afb8bec.tar.gz anaconda-3895ac98b21ba1f52f57e274910121443afb8bec.tar.xz anaconda-3895ac98b21ba1f52f57e274910121443afb8bec.zip |
Init tty3 logger in the right place to fix scripts.
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -26,7 +26,6 @@ # This toplevel file is a little messy at the moment... import sys, os -import logging # keep up with process ID of miniwm if we start it @@ -349,12 +348,17 @@ if (os.access("/mnt/source/RHupdates/rhpl", os.X_OK) or import signal, traceback, string, isys, iutil, time from exception import handleException -import dispatch, logging +import dispatch +import logging +from anaconda_log import logger from flags import flags log = logging.getLogger("anaconda") stdoutLog = logging.getLogger("anaconda.stdout") +if iutil.getArch() != "s390": + logger.addFileHandler ("/dev/tty3", log) + from rhpl.translate import _, textdomain, addPoPath if os.path.isdir("/mnt/source/RHupdates/po"): @@ -496,7 +500,6 @@ for n in args: elif (str == '--lang'): lang = arg elif (str == '--syslog'): - from anaconda_log import logger if arg.find(":") != -1: (host, port) = arg.split(':') logger.addSysLogHandler(logging.getLogger("anaconda"), host, |