Use lines argument
This commit is contained in:
@@ -679,7 +679,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
var eventSource = new EventSource(client.apiOrigin + '/api/v1/tasks/' + taskId + '/logstream?lines=' + lines + '&access_token=' + token);
|
||||
callback(null, eventSource);
|
||||
} else {
|
||||
get('/api/v1/services/' + taskId + '/logs?lines=100', null, function (error, data, status) {
|
||||
get('/api/v1/services/' + taskId + '/logs?lines=' + lines, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
@@ -771,7 +771,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
var eventSource = new EventSource(client.apiOrigin + '/api/v1/cloudron/logstream/' + unit + '?lines=' + lines + '&access_token=' + token);
|
||||
callback(null, eventSource);
|
||||
} else {
|
||||
get('/api/v1/cloudron/logs/' + unit + '?lines=100', null, function (error, data, status) {
|
||||
get('/api/v1/cloudron/logs/' + unit + '?lines=' + lines, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
@@ -785,7 +785,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
var eventSource = new EventSource(client.apiOrigin + '/api/v1/services/' + serviceName + '/logstream?lines=' + lines + '&access_token=' + token);
|
||||
callback(null, eventSource);
|
||||
} else {
|
||||
get('/api/v1/services/' + serviceName + '/logs?lines=100', null, function (error, data, status) {
|
||||
get('/api/v1/services/' + serviceName + '/logs?lines=' + lines, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user