summaryrefslogtreecommitdiffstats
path: root/anaconda_log.py
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2010-02-16 17:58:57 +0100
committerAles Kozumplik <akozumpl@redhat.com>2010-02-18 10:08:43 +0100
commit88e383bff31d52f99b242226ebda0b682fc5b950 (patch)
tree15eb962158318fe890a97a6465a6cff0d69f7f14 /anaconda_log.py
parent910746fca3825cca207dfe165986e259afb53a2b (diff)
downloadanaconda-88e383bff31d52f99b242226ebda0b682fc5b950.tar.gz
anaconda-88e383bff31d52f99b242226ebda0b682fc5b950.tar.xz
anaconda-88e383bff31d52f99b242226ebda0b682fc5b950.zip
logging: introduce stderr logger and use it for critical situations in kickstart.py.
Diffstat (limited to 'anaconda_log.py')
-rw-r--r--anaconda_log.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/anaconda_log.py b/anaconda_log.py
index a144b8a8d..1ee40cb85 100644
--- a/anaconda_log.py
+++ b/anaconda_log.py
@@ -94,6 +94,12 @@ class AnacondaLog:
self.addFileHandler(sys.stdout, stdoutLogger,
fmtStr=STDOUT_FORMAT, minLevel=logging.INFO)
+ # Stderr logger
+ stderrLogger = logging.getLogger("anaconda.stderr")
+ stderrLogger.setLevel(logging.INFO)
+ self.addFileHandler(sys.stderr, stderrLogger,
+ fmtStr=STDOUT_FORMAT, minLevel=logging.INFO)
+
# Add a simple handler - file or stream, depending on what we're given.
def addFileHandler (self, file, addToLogger, minLevel=DEFAULT_TTY_LEVEL,
fmtStr=ENTRY_FORMAT,