Fixup logs routes as well

This commit is contained in:
Girish Ramakrishnan
2018-12-02 19:07:12 -08:00
parent f93044ac3b
commit 2f55abfc60
2 changed files with 10 additions and 13 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ function getLogs(req, res, next) {
format: req.query.format
};
addons.getLogs(req.params.service, options, function (error, logStream) {
addons.getServiceLogs(req.params.service, options, function (error, logStream) {
if (error && error.reason === AddonsError.NOT_FOUND) return next(new HttpError(404, 'No such service'));
if (error) return next(new HttpError(500, error));
@@ -99,7 +99,7 @@ function getLogStream(req, res, next) {
follow: true
};
addons.getLogs(req.params.service, options, function (error, logStream) {
addons.getServiceLogs(req.params.service, options, function (error, logStream) {
if (error && error.reason === AddonsError.NOT_FOUND) return next(new HttpError(404, 'No such service'));
if (error) return next(new HttpError(500, error));