Commit c4e44fcb authored by Lorenz Steinert's avatar Lorenz Steinert

fixed some logging levels

parent fac6f962
......@@ -105,7 +105,7 @@ class FsrLdap:
logging.warning("Couldn't Connect to ldap. \
Using fallback File. %s" % error_message)
else:
logging.warning("Couldn't Connect to ldap. Using fallback File. ")
logging.warning("Couldn't Connect to ldap. Using fallback File.")
return (Error.LDAP_FAIL, error_message)
@staticmethod
......@@ -321,7 +321,7 @@ def get_ldap_server(config=None, server=None):
return server
if config:
return config['SERVER']['NAME']
logging.info("No LDAP Server supplied. Triing to use \"rincwind.fs.physik.uni-kl.de\".")
logging.warning('No LDAP Server supplied. Triing to use "rincwind.fs.physik.uni-kl.de".')
return "rincewind.fs.physik.uni-kl.de"
......@@ -331,7 +331,7 @@ def get_ldap_base(config=None, base=None):
return base
if config:
return config['SERVER']['BASE']
logging.info("No LDAP search base supplied. Triing to use \"dc=fs,dc=physik,dc=uni-kl,dc=de\".")
logging.warning('No LDAP search base supplied. Triing to use "dc=fs,dc=physik,dc=uni-kl,dc=de".')
return "dc=fs,dc=physik,dc=uni-kl,dc=de"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment