Skip to content

Commit

Permalink
fix(statistics): remove the logging when there is an error caused by …
Browse files Browse the repository at this point in the history
…creating an existent index

The statistics jobs runs in paralell and they try to create the same
index. One of them, runs the request to create the index succesful, but
the other one fails due the index already exists. This error is caught
and logged.

If the error is not related to the index exists, this is thrown and it
is caught and logged in another method related to the statistics job

More information in:
- #4203 (comment)
  • Loading branch information
Desvelao committed Jun 9, 2022
1 parent e8c4815 commit 3800abe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/start/cron-scheduler/save-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export class SaveDocument {
}
})();
} catch (error) {
log(this.logPath, error.message || error);
this.checkDuplicateIndexError(error);
}
}
Expand Down

0 comments on commit 3800abe

Please sign in to comment.