Skip to content

Commit

Permalink
Default to console if no logger can be loaded, clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Aug 5, 2020
1 parent c108dc1 commit c1df0d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = class ServicesAPI {
var context = this.context.processingContext(req);
// Update user id to the user id, which stored the job. See https://github.com/Open-EO/openeo-earthengine-driver/issues/19
context.setUserId(service.user_id);
let logger;
let logger = console;
this.storage.getLogsById(req.params.service_id, Utils.timeId())
.then(logs => {
var pg = new ProcessGraph(service.process, context);
Expand Down
1 change: 0 additions & 1 deletion src/models/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ module.exports = class Logs {
// Are there more elements?
if (limit >= 1 && logs.length === limit + 1) {
logs.pop();
console.log(logs.length);
let last = logs[logs.length - 1];
let url = this.url + '?offset=' + last.id + (limit >= 1 ? '&limit=' + limit : '')
links.push({
Expand Down

0 comments on commit c1df0d1

Please sign in to comment.