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