summaryrefslogtreecommitdiffstats
path: root/anaconda_log.py
diff options
context:
space:
mode:
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"))