summaryrefslogtreecommitdiffstats
path: root/firewall.py
diff options
context:
space:
mode:
Diffstat (limited to 'firewall.py')
-rw-r--r--firewall.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/firewall.py b/firewall.py
index 08f990248..48af04af3 100644
--- a/firewall.py
+++ b/firewall.py
@@ -19,9 +19,11 @@ import iutil
import string
from flags import flags
-from rhpl.log import log
from rhpl.translate import _, N_
+import logging
+log = logging.getLogger("anaconda")
+
class Firewall:
def __init__ (self):
self.enabled = 1
@@ -66,11 +68,11 @@ class Firewall:
iutil.execWithRedirect(args[0], args, root = instPath,
stdout = None, stderr = None)
else:
- log("would have run %s", args)
+ log.error("would have run %s", args)
except RuntimeError, msg:
- log ("lokkit run failed: %s", msg)
+ log.error ("lokkit run failed: %s", msg)
except OSError, (errno, msg):
- log ("lokkit run failed: %s", msg)
+ log.error ("lokkit run failed: %s", msg)
else:
f = open(instPath +
'/etc/sysconfig/system-config-securitylevel', 'w')