Show More
@@ -233,11 +233,12 b' class SimpleGit(BaseVCSController):' | |||||
233 | self._invalidate_cache(repo_name) |
|
233 | self._invalidate_cache(repo_name) | |
234 | self._handle_githooks(repo_name, action, baseui, environ) |
|
234 | self._handle_githooks(repo_name, action, baseui, environ) | |
235 |
|
235 | |||
236 |
log.info('%s action on GIT repo "%s"' % |
|
236 | log.info('%s action on GIT repo "%s" by "%s" from %s' % | |
|
237 | (action, repo_name, username, ip_addr)) | |||
237 | app = self.__make_app(repo_name, repo_path, extras) |
|
238 | app = self.__make_app(repo_name, repo_path, extras) | |
238 | return app(environ, start_response) |
|
239 | return app(environ, start_response) | |
239 | except HTTPLockedRC, e: |
|
240 | except HTTPLockedRC, e: | |
240 | log.debug('Repositry LOCKED ret code 423!') |
|
241 | log.debug('Repository LOCKED ret code 423!') | |
241 | return e(environ, start_response) |
|
242 | return e(environ, start_response) | |
242 | except Exception: |
|
243 | except Exception: | |
243 | log.error(traceback.format_exc()) |
|
244 | log.error(traceback.format_exc()) |
@@ -194,14 +194,15 b' class SimpleHg(BaseVCSController):' | |||||
194 | # invalidate cache on push |
|
194 | # invalidate cache on push | |
195 | if action == 'push': |
|
195 | if action == 'push': | |
196 | self._invalidate_cache(repo_name) |
|
196 | self._invalidate_cache(repo_name) | |
197 |
log.info('%s action on HG repo "%s"' % |
|
197 | log.info('%s action on HG repo "%s" by "%s" from %s' % | |
|
198 | (action, repo_name, username, ip_addr)) | |||
198 | app = self.__make_app(repo_path, baseui, extras) |
|
199 | app = self.__make_app(repo_path, baseui, extras) | |
199 | return app(environ, start_response) |
|
200 | return app(environ, start_response) | |
200 | except RepoError, e: |
|
201 | except RepoError, e: | |
201 | if str(e).find('not found') != -1: |
|
202 | if str(e).find('not found') != -1: | |
202 | return HTTPNotFound()(environ, start_response) |
|
203 | return HTTPNotFound()(environ, start_response) | |
203 | except HTTPLockedRC, e: |
|
204 | except HTTPLockedRC, e: | |
204 | log.debug('Repositry LOCKED ret code 423!') |
|
205 | log.debug('Repository LOCKED ret code 423!') | |
205 | return e(environ, start_response) |
|
206 | return e(environ, start_response) | |
206 | except Exception: |
|
207 | except Exception: | |
207 | log.error(traceback.format_exc()) |
|
208 | log.error(traceback.format_exc()) |
General Comments 0
You need to be logged in to leave comments.
Login now