From 3895ac98b21ba1f52f57e274910121443afb8bec Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 16 Aug 2005 15:56:25 +0000 Subject: Init tty3 logger in the right place to fix scripts. --- anaconda | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'anaconda') diff --git a/anaconda b/anaconda index 14f2d5c3f..7760d04ad 100755 --- a/anaconda +++ b/anaconda @@ -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, -- cgit