summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-31 17:03:10 -0400
committerRob Crittenden <rcritten@redhat.com>2008-11-03 13:14:46 -0500
commitdd9206deb62c1c96344d2280f672353a53a7fd11 (patch)
tree88644a1b8daf0a9a672d1ddc53da8d564c4c2216 /ipalib
parentf18c84444d4ed87d79f3cb41156c6b66f49ccac3 (diff)
downloadfreeipa-dd9206deb62c1c96344d2280f672353a53a7fd11.tar.gz
freeipa-dd9206deb62c1c96344d2280f672353a53a7fd11.tar.xz
freeipa-dd9206deb62c1c96344d2280f672353a53a7fd11.zip
Uncomment some logging statements ported over from v1.
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/f_group.py2
-rw-r--r--ipalib/plugins/f_service.py4
-rw-r--r--ipalib/plugins/f_user.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/ipalib/plugins/f_group.py b/ipalib/plugins/f_group.py
index 13af14c15..9df83a299 100644
--- a/ipalib/plugins/f_group.py
+++ b/ipalib/plugins/f_group.py
@@ -111,7 +111,7 @@ class group_del(crud.Del):
ldap = self.api.Backend.ldap
dn = ldap.find_entry_dn("cn", cn, "posixGroup")
-# logging.info("IPA: delete_group '%s'" % dn)
+ self.log.info("IPA: group-del '%s'" % dn)
# Don't allow the default user group to be removed
config=ldap.get_ipa_config()
diff --git a/ipalib/plugins/f_service.py b/ipalib/plugins/f_service.py
index f02176ffc..04187a863 100644
--- a/ipalib/plugins/f_service.py
+++ b/ipalib/plugins/f_service.py
@@ -91,10 +91,10 @@ class service_add(crud.Add):
fqdn = hostname + "."
rs = dnsclient.query(fqdn, dnsclient.DNS_C_IN, dnsclient.DNS_T_A)
if len(rs) == 0:
- logging.debug("IPA: DNS A record lookup failed for '%s'" % hostname)
+ self.log.debug("IPA: DNS A record lookup failed for '%s'" % hostname)
raise ipaerror.gen_exception(ipaerror.INPUT_NOT_DNS_A_RECORD)
else:
- logging.debug("IPA: found %d records for '%s'" % (len(rs), hostname))
+ self.log.debug("IPA: found %d records for '%s'" % (len(rs), hostname))
"""
# At some point we'll support multiple realms
diff --git a/ipalib/plugins/f_user.py b/ipalib/plugins/f_user.py
index d8bb49e20..3adb328cb 100644
--- a/ipalib/plugins/f_user.py
+++ b/ipalib/plugins/f_user.py
@@ -219,7 +219,7 @@ class user_del(crud.Del):
# FIXME: do we still want a "special" user?
raise SyntaxError("admin required")
# raise ipaerror.gen_exception(ipaerror.INPUT_ADMIN_REQUIRED)
-# logging.info("IPA: delete_user '%s'" % uid)
+ self.log.info("IPA: user-del '%s'" % uid)
ldap = self.api.Backend.ldap
dn = ldap.find_entry_dn("uid", uid)