Commit 5bc3df27 authored by CompileNix's avatar CompileNix

add debug config flag

parent bda42b03
......@@ -15,7 +15,8 @@ class Config {
this.expressions = [
{ match: /HTTP\/\d\.\d\" 404/g, subject: 'HTTP 404', matchCounter: 0 },
{ match: /HTTP\/\d\.\d\" 5\d{2}/g, subject: 'HTTP 5xx', matchCounter: 0 }
]
],
this.debug = false // show additional console output
}
};
......
......@@ -54,6 +54,7 @@ function optimizeExpressionCollectionOrder() {
if (first.matchCounter < seconds.matchCounter) return 1;
return 0;
});
if (config.debug) console.log(config.expressions);
}
function filterLog( /** @type {string} */ line) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment