Merge pull request #1390 from coreos-inc/betterlogs
Log the pushed tag and add IP address display
This commit is contained in:
commit
3f73e53270
3 changed files with 13 additions and 2 deletions
|
@ -464,7 +464,7 @@ def _write_manifest(namespace_name, repo_name, manifest):
|
|||
'updated_tags': [tag_name],
|
||||
}
|
||||
|
||||
track_and_log('push_repo', repo)
|
||||
track_and_log('push_repo', repo, tag=tag_name)
|
||||
spawn_notification(repo, 'repo_push', event_data)
|
||||
|
||||
response = make_response('OK', 202)
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
<td>Description</td>
|
||||
<td style="min-width: 226px">Date/Time</td>
|
||||
<td>User/Token/App</td>
|
||||
<td>IP Address</td>
|
||||
</thead>
|
||||
|
||||
<tr class="log" ng-repeat="log in (logs | visibleLogFilter:kindsAllowed | filter:search)"
|
||||
|
@ -72,6 +73,10 @@
|
|||
(anonymous)
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span bo-if="log.metadata._ip"><span bo-text="log.metadata._ip"></span></span>
|
||||
<span class="empty" bo-if="!log.metadata._ip">(No data)</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="cor-loader" ng-show="loading"></div>
|
||||
|
|
|
@ -45,7 +45,13 @@ angular.module('quay').directive('logsView', function () {
|
|||
'create_robot': 'Create Robot Account: {robot}',
|
||||
'delete_robot': 'Delete Robot Account: {robot}',
|
||||
'create_repo': 'Create Repository: {repo}',
|
||||
'push_repo': 'Push to repository: {repo}',
|
||||
'push_repo': function(metadata) {
|
||||
if (metadata.tag) {
|
||||
return 'Push of {tag}';
|
||||
} else {
|
||||
return 'Repository push';
|
||||
}
|
||||
},
|
||||
'repo_verb': function(metadata) {
|
||||
var prefix = '';
|
||||
if (metadata.verb == 'squash') {
|
||||
|
|
Reference in a new issue