summaryrefslogtreecommitdiffstats
path: root/pykolab/conf
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-14 11:57:39 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-14 11:57:39 +0100
commitdeb3fd58506fbc8553ac3d52bd8a80576379d09c (patch)
treebe934c128b0e6e71019bd1df572ce0cb9c6d5c90 /pykolab/conf
parent7960e263a1522142bfb845eb32ee7cbf810e14ee (diff)
downloadpykolab-deb3fd58506fbc8553ac3d52bd8a80576379d09c.tar.gz
Use log.error() instead of print >> sys.stderr
Diffstat (limited to 'pykolab/conf')
-rw-r--r--pykolab/conf/entitlement.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pykolab/conf/entitlement.py b/pykolab/conf/entitlement.py
index 54370c7..c726c1e 100644
--- a/pykolab/conf/entitlement.py
+++ b/pykolab/conf/entitlement.py
@@ -137,13 +137,14 @@ class Entitlement(object):
)
else:
- print >> sys.stderr, \
+ log.error(
_("License file %s not readable!") % (
os.path.join(root, entitlement_file)
)
+ )
else:
- print >> sys.stderr, _("No entitlement directory found")
+ log.error(_("No entitlement directory found"))
for entitlement_file in self.entitlement_files:
@@ -187,8 +188,8 @@ class Entitlement(object):
license.verify_certificate(customer_cert_file)
self.entitlement = license.get()
- else:
- print "Error reading entitlement certificate authority file"
+# else:
+# log.error(_("Error reading entitlement certificate authority file"))
def get(self):
if len(self.entitlement.keys()) == 0: