Show More
@@ -36,7 +36,8 b' from webob.exc import (' | |||||
36 | import rhodecode |
|
36 | import rhodecode | |
37 | from rhodecode.authentication.base import authenticate, VCS_TYPE |
|
37 | from rhodecode.authentication.base import authenticate, VCS_TYPE | |
38 | from rhodecode.lib.auth import AuthUser, HasPermissionAnyMiddleware |
|
38 | from rhodecode.lib.auth import AuthUser, HasPermissionAnyMiddleware | |
39 | from rhodecode.lib.base import BasicAuth, get_ip_addr, vcs_operation_context |
|
39 | from rhodecode.lib.base import ( | |
|
40 | BasicAuth, get_ip_addr, get_user_agent, vcs_operation_context) | |||
40 | from rhodecode.lib.exceptions import ( |
|
41 | from rhodecode.lib.exceptions import ( | |
41 | HTTPLockedRC, HTTPRequirementError, UserCreationError, |
|
42 | HTTPLockedRC, HTTPRequirementError, UserCreationError, | |
42 | NotAllowedToCreateUserError) |
|
43 | NotAllowedToCreateUserError) | |
@@ -310,6 +311,7 b' class SimpleVCS(object):' | |||||
310 | log.debug('Extracted repo name is %s', self.url_repo_name) |
|
311 | log.debug('Extracted repo name is %s', self.url_repo_name) | |
311 |
|
312 | |||
312 | ip_addr = get_ip_addr(environ) |
|
313 | ip_addr = get_ip_addr(environ) | |
|
314 | user_agent = get_user_agent(environ) | |||
313 | username = None |
|
315 | username = None | |
314 |
|
316 | |||
315 | # skip passing error to error controller |
|
317 | # skip passing error to error controller | |
@@ -429,9 +431,9 b' class SimpleVCS(object):' | |||||
429 | fix_PATH() |
|
431 | fix_PATH() | |
430 |
|
432 | |||
431 | log.info( |
|
433 | log.info( | |
432 | '%s action on %s repo "%s" by "%s" from %s', |
|
434 | '%s action on %s repo "%s" by "%s" from %s %s', | |
433 | action, self.SCM, safe_str(self.url_repo_name), |
|
435 | action, self.SCM, safe_str(self.url_repo_name), | |
434 | safe_str(username), ip_addr) |
|
436 | safe_str(username), ip_addr, user_agent) | |
435 |
|
437 | |||
436 | return self._generate_vcs_response( |
|
438 | return self._generate_vcs_response( | |
437 | environ, start_response, repo_path, extras, action) |
|
439 | environ, start_response, repo_path, extras, action) |
General Comments 0
You need to be logged in to leave comments.
Login now