From e6fe5adca7b6018e9baa57a8a0edfb9ab7a78292 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 8 Jan 2019 13:12:37 -0800 Subject: [PATCH] Use lines argument --- src/js/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/client.js b/src/js/client.js index ee906df74..dceff9f80 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -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));