##// END OF EJS Templates
audit-logs: store repository name on pull action.
marcink -
r1737:c2645bad default
parent child Browse files
Show More
@@ -160,10 +160,11 b' def post_pull(extras):'
160 audit_user = audit_logger.UserWrap(
160 audit_user = audit_logger.UserWrap(
161 username=extras.username,
161 username=extras.username,
162 ip_addr=extras.ip)
162 ip_addr=extras.ip)
163 repo = audit_logger.RepoWrap(repo_name=extras.repository)
163 audit_logger.store(
164 audit_logger.store(
164 action='user.pull', action_data={
165 action='user.pull', action_data={
165 'user_agent': extras.user_agent},
166 'user_agent': extras.user_agent},
166 user=audit_user, commit=True)
167 user=audit_user, repo=repo, commit=True)
167
168
168 # Propagate to external components.
169 # Propagate to external components.
169 if not is_shadow_repo(extras):
170 if not is_shadow_repo(extras):
General Comments 0
You need to be logged in to leave comments. Login now