From 84c3d9604f519b091d0c8f947255ee3dd9968ffd Mon Sep 17 00:00:00 2001 From: kakwa Date: Wed, 24 Jun 2015 21:24:56 +0200 Subject: [PATCH] replace uppercase characters in logs --- ldapcherry/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index 515b7bb..6d5df8e 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -53,7 +53,7 @@ class LdapCherry(object): ) else: cherrypy.log.error( - msg = "Unkwon exception '%(e)s'" % { 'e' : str(e) }, + msg = "unkwon exception '%(e)s'" % { 'e' : str(e) }, severity = logging.ERROR ) # log the traceback as 'debug' @@ -402,7 +402,7 @@ class LdapCherry(object): def _adduser(self, params): cherrypy.log.error( - msg = "Add user form attributes: " + str(params), + msg = "add user form attributes: " + str(params), severity = logging.DEBUG ) params = self._parse_params(params) @@ -430,12 +430,12 @@ class LdapCherry(object): admin = str(sess.get(SESSION_KEY, None)) cherrypy.log.error( - msg = "User '" + username + "' added by '" + admin + "'", + msg = "user '" + username + "' added by '" + admin + "'", severity = logging.INFO ) cherrypy.log.error( - msg = "User '" + username + "' attributes: " + str(badd), + msg = "user '" + username + "' attributes: " + str(badd), severity = logging.DEBUG ) @@ -448,7 +448,7 @@ class LdapCherry(object): self.backends[b].add_to_groups(username, Set(groups[b])) cherrypy.log.error( - msg = "User '" + username + "' made member of " + str(roles)+ " by '" + admin + "'", + msg = "user '" + username + "' made member of " + str(roles)+ " by '" + admin + "'", severity = logging.INFO ) @@ -465,7 +465,7 @@ class LdapCherry(object): for b in self.backends: self.backends[b].del_user(username) cherrypy.log.error( - msg = "User '" + username + "' deleted from backend '" + b + "'", + msg = "user '" + username + "' deleted from backend '" + b + "'", severity = logging.DEBUG ) cherrypy.log.error(