summaryrefslogtreecommitdiffstats
path: root/anaconda_log.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-15 20:18:44 +0000
committerChris Lumens <clumens@redhat.com>2005-08-15 20:18:44 +0000
commit9b23a6525d075dba5288d8408d3be901107e6f15 (patch)
treedd0f07970fffb59a2b8792ba9ba476d9ca66aaad /anaconda_log.py
parentec0805eff62473ea14cee91d830e5b418adaa95c (diff)
downloadanaconda-9b23a6525d075dba5288d8408d3be901107e6f15.tar.gz
anaconda-9b23a6525d075dba5288d8408d3be901107e6f15.tar.xz
anaconda-9b23a6525d075dba5288d8408d3be901107e6f15.zip
Added syslog= parameter for logging to a remote machine once we're out of
the loader.
Diffstat (limited to 'anaconda_log.py')
-rw-r--r--anaconda_log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/anaconda_log.py b/anaconda_log.py
index 6d4ca8da1..d5ff733b1 100644
--- a/anaconda_log.py
+++ b/anaconda_log.py
@@ -65,13 +65,13 @@ class AnacondaLog:
newLogger.setLevel(minLevel)
# Add a handler for remote syslogs.
- def addSysLogHandler (self, host, port=SYSLOG_UDP_PORT,
+ def addSysLogHandler (self, logger, host, port=SYSLOG_UDP_PORT,
minLevel=DEFAULT_LEVEL):
fmt = logging.Formatter("%(levelname)-8s %(message)s")
syslogHandler = SysLogHandler((host, port))
syslogHandler.setLevel(minLevel)
syslogHandler.setFormatter(fmt)
- self.logger.addHandler(syslogHandler)
+ logger.addHandler(syslogHandler)
logger = AnacondaLog()
logger.addFileHandler (logFile, logging.getLogger("anaconda"))