redis: logs

This commit is contained in:
Girish Ramakrishnan
2020-12-04 00:45:53 -08:00
parent 89e62541b5
commit 734542b3c4
+9 -1
View File
@@ -83,7 +83,15 @@ app.controller('LogsController', ['$scope', '$translate', 'Client', function ($s
}
function select(ids, callback) {
if (ids.id) {
if (ids.id && ids.id.indexOf('redis:') === 0) {
$scope.selected = {
name: 'Redis',
type: 'service',
value: ids.id,
url: Client.makeURL('/api/v1/services/' + ids.id + '/logs')
};
callback();
} else if (ids.id) {
var BUILT_IN_LOGS = [
{ name: 'Box', type: 'platform', value: 'box', url: Client.makeURL('/api/v1/cloudron/logs/box') },
{ name: 'Graphite', type: 'service', value: 'graphite', url: Client.makeURL('/api/v1/services/graphite/logs') },