Mercurial > kallithea
comparison rhodecode/lib/middleware/simplegit.py @ 2021:a04844d9c85b beta
better logging
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 22 Feb 2012 21:20:50 +0200 |
parents | 324ac367a4da |
children | c6e288dcb4a2 |
comparison
equal
deleted
inserted
replaced
2020:bedd7336908c | 2021:a04844d9c85b |
---|---|
155 return result.wsgi_application(environ, start_response) | 155 return result.wsgi_application(environ, start_response) |
156 | 156 |
157 #============================================================== | 157 #============================================================== |
158 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME | 158 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME |
159 #============================================================== | 159 #============================================================== |
160 | 160 log.info('%s action on GIT repo "%s"' % (action, repo_name)) |
161 if action in ['pull', 'push']: | 161 if action in ['pull', 'push']: |
162 try: | 162 try: |
163 user = self.__get_user(username) | 163 user = self.__get_user(username) |
164 if user is None or not user.active: | 164 if user is None or not user.active: |
165 return HTTPForbidden()(environ, start_response) | 165 return HTTPForbidden()(environ, start_response) |