diff options
author | Erik Troan <ewt@redhat.com> | 2001-06-20 02:07:35 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-06-20 02:07:35 +0000 |
commit | 3909ecc3361e3a5a223a55147d7881275907b54d (patch) | |
tree | 75adb50975bff072b1100696b7fa6f67e3293868 /log.py | |
parent | 99da1533c688ec3be0af902d71943c41b8ac4f4f (diff) | |
download | anaconda-3909ecc3361e3a5a223a55147d7881275907b54d.tar.gz anaconda-3909ecc3361e3a5a223a55147d7881275907b54d.tar.xz anaconda-3909ecc3361e3a5a223a55147d7881275907b54d.zip |
merge from (now defunct) anaconda-dispatch branch
Diffstat (limited to 'log.py')
-rw-r--r-- | log.py | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -1,4 +1,4 @@ -import sys, os +import sys class LogFile: def __init__ (self): @@ -7,18 +7,14 @@ class LogFile: def close (self): self.logFile.close () - def open (self, serial, reconfigOnly, test, setupFilesystems): - if reconfigOnly: + def open (self, file): + if type(file) == type("hello"): try: - self.logFile = open("/var/log/reconfig.log", "w") + self.logFile = open(file, "w") except: self.logFile = sys.stderr - elif not setupFilesystems: - self.logFile = sys.stderr - elif serial: - self.logFile = open("/tmp/install.log", "w") - elif test: - self.logFile = open("/tmp/anaconda-debug.log", "w") + elif file: + self.logFile = file else: self.logFile = open("/dev/tty3", "w") |