Merge pull request #2663 from coreos-inc/multi-instance-su-panel
Disable debug logs in superuser panel when under multiple instances
This commit is contained in:
commit
b8e5a21736
3 changed files with 40 additions and 17 deletions
|
@ -87,27 +87,31 @@
|
|||
|
||||
<!-- Debugging tab -->
|
||||
<cor-tab-pane id="debug">
|
||||
<div class="cor-loader" ng-show="!debugServices"></div>
|
||||
<div class="co-alert co-alert-warning" ng-show="multipleInstances">
|
||||
Debug logs cannot be displayed as <span class="registry-name"></span> is running under multiple containers. To retrieve logs, please use your implementation's custom configured logging solution.
|
||||
</div>
|
||||
<div ng-show="!multipleInstances">
|
||||
<div class="cor-loader" ng-show="!debugServices"></div>
|
||||
<div role="tabpanel" ng-show="debugServices">
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" ng-repeat="service in debugServices"
|
||||
ng-class="debugService == service ? 'active' : ''">
|
||||
<a ng-click="viewSystemLogs(service)">{{ service }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div role="tabpanel" ng-show="debugServices">
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" ng-repeat="service in debugServices"
|
||||
ng-class="debugService == service ? 'active' : ''">
|
||||
<a ng-click="viewSystemLogs(service)">{{ service }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="system-log-download-panel" ng-if="!debugService">
|
||||
Select a service above to view its local logs
|
||||
|
||||
<div class="system-log-download-panel" ng-if="!debugService">
|
||||
Select a service above to view its local logs
|
||||
|
||||
<div>
|
||||
<a class="btn btn-primary" href="/systemlogsarchive?_csrf_token={{ csrf_token }}" ng-safenewtab>
|
||||
<i class="fa fa-download fa-lg" style="margin-right: 4px;"></i> Download All Local Logs (.tar.gz)
|
||||
</a>
|
||||
<div>
|
||||
<a class="btn btn-primary" href="/systemlogsarchive?_csrf_token={{ csrf_token }}" ng-safenewtab>
|
||||
<i class="fa fa-download fa-lg" style="margin-right: 4px;"></i> Download All Local Logs (.tar.gz)
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cor-log-box" logs="debugLogs" ng-show="debugService"></div>
|
||||
</div>
|
||||
<div class="cor-log-box" logs="debugLogs" ng-show="debugService"></div>
|
||||
</div>
|
||||
</cor-tab-pane>
|
||||
|
||||
|
|
Reference in a new issue