Fix CRUX error log #3126 (#3130)

This commit is contained in:
Peter Hedenskog 2020-08-20 11:32:41 +02:00 committed by GitHub
parent c17fd0072d
commit c2afdf2487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -39,10 +39,13 @@ module.exports = {
path.resolve(__dirname, 'pug', 'index.pug'),
'utf8'
);
context.filterRegistry.registerFilterForType(
DEFAULT_METRICS_PAGESUMMARY,
'crux.pageSummary'
);
if (this.options.collect === 'ALL' || this.options.collect === 'URL') {
context.filterRegistry.registerFilterForType(
DEFAULT_METRICS_PAGESUMMARY,
'crux.pageSummary'
);
}
context.filterRegistry.registerFilterForType(
DEFAULT_METRICS_SUMMARY,