diff --git a/backend/GnuviechAdmin/SessionManager.py b/backend/GnuviechAdmin/SessionManager.py index 07d8154..e795d9d 100644 --- a/backend/GnuviechAdmin/SessionManager.py +++ b/backend/GnuviechAdmin/SessionManager.py @@ -35,6 +35,9 @@ class Session: return self._timeoutTimer class SessionManager: + """ + The Sessionmanager provides methods for login and session handling. + """ def __init__(self, dbconn): self._sessions = {} self._dbconn = dbconn @@ -56,7 +59,10 @@ class SessionManager: sessionid = self._hashobj.hexdigest() self._sessions[sessionid] = Session(sessionid, login) self.updateSession(sessionid) + self.logger.info('New session with id %s created for %s' % + (sessionid, login)) return sessionid + self.logger.info('Login for %s failed' % login) raise InvalidLoginError def updateSession(self, sessionid):