Skip to content

Commit

Permalink
Adds profiling to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
waldemarnt authored and lucaslago committed Mar 21, 2017
1 parent 673cd89 commit 0774aed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/events-reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,11 @@ module.exports = function (harvesterApp) {
var that = this;
if (doc != null) {

var regexProfileMessage = 'checkpoint regex to cl ' + doc.ns + ' ts ' + doc.ts;
log.profile(regexProfileMessage);
var regexCheckpoint = new RegExp('.*\\.checkpoints$', 'i');
var matchCheckpoint = regexCheckpoint.test(doc.ns);
log.profile(regexProfileMessage);

if (!matchCheckpoint) {

Expand Down

0 comments on commit 0774aed

Please sign in to comment.