Log more information to the action logs and display the namespaces for superusers
This helps superusers understand better what, exactly, is going on in the registry
This commit is contained in:
parent
2b189694a8
commit
11c931f781
10 changed files with 88 additions and 40 deletions
|
@ -106,7 +106,8 @@ class RepositoryTag(RepositoryParamResource):
|
|||
username = get_authenticated_user().username
|
||||
log_action('move_tag' if original_image_id else 'create_tag', namespace,
|
||||
{'username': username, 'repo': repository, 'tag': tag,
|
||||
'image': image_id, 'original_image': original_image_id},
|
||||
'namespace': namespace, 'image': image_id,
|
||||
'original_image': original_image_id},
|
||||
repo=model.repository.get_repository(namespace, repository))
|
||||
|
||||
return 'Updated', 201
|
||||
|
@ -119,7 +120,7 @@ class RepositoryTag(RepositoryParamResource):
|
|||
|
||||
username = get_authenticated_user().username
|
||||
log_action('delete_tag', namespace,
|
||||
{'username': username, 'repo': repository, 'tag': tag},
|
||||
{'username': username, 'repo': repository, 'namespace': namespace, 'tag': tag},
|
||||
repo=model.repository.get_repository(namespace, repository))
|
||||
|
||||
return '', 204
|
||||
|
|
Reference in a new issue