summaryrefslogtreecommitdiffstats
path: root/syslogd.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-12 17:02:54 +0000
committerChris Lumens <clumens@redhat.com>2005-08-12 17:02:54 +0000
commitad06ecd663388d31e24ed8a915cbb75c8c09e5e3 (patch)
tree7ec622b907c6b5ba672512bba993a0e109cfdb18 /syslogd.py
parentbe9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff)
downloadanaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip
Use new logging system.
Diffstat (limited to 'syslogd.py')
-rw-r--r--syslogd.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/syslogd.py b/syslogd.py
index f484de05a..5d4a01954 100644
--- a/syslogd.py
+++ b/syslogd.py
@@ -17,7 +17,9 @@ import sys, os
import string
from socket import *
from select import select
-from rhpl.log import log
+
+import logging
+log = logging.getLogger("anaconda")
class Syslogd:
def goSyslog(self, output, sockName):
@@ -88,12 +90,12 @@ class InstSyslog:
try:
os.kill (self.pid, 15)
except OSError, (num, msg):
- log("killing syslogd failed: %s %s" %(num, msg))
+ log.error("killing syslogd failed: %s %s" %(num, msg))
try:
os.waitpid (self.pid, 0)
except OSError, (num, msg):
- log("exception from waitpid in syslogd::stop: %s %s" % (num, msg))
+ log.error("exception from waitpid in syslogd::stop: %s %s" % (num, msg))
self.pid = -1