Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(devtools-log): consolidate implementation into gatherer #14080

Merged
merged 6 commits into from
Jun 10, 2022

Conversation

paulirish
Copy link
Member

currently we have two devtools-log.js files.

the gatherer one is only used in FR, not legacy. in legacy, the equivalent functionality is done in driver.

so i'm changing the legacy one's name to be what it does. also… relevant 2017 threads: #1665 (comment) and #1669

@@ -12,7 +12,7 @@ const {fetchResponseBodyFromCache} = require('../gather/driver/network.js');
const EventEmitter = require('events').EventEmitter;

const log = require('lighthouse-logger');
const DevtoolsLog = require('./devtools-log.js');
const DevToolsMessageLog = require('./gatherers/devtools-log.js').DevToolsMessageLog;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: casing does not match file/how we typically stylize "devtools"


/**
* This class saves all protocol messages whose method match a particular
* regex filter. Used when saving assets for later analysis by another tool such as
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit (sorry): spacing is off

module.exports = DevtoolsLog;
module.exports.DevToolsMessageLog = DevToolsMessageLog;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

casing does not match


describe('DevtoolsLog', () => {
describe('DevToolsMessageLog', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

casing

Copy link
Collaborator

@connorjclark connorjclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approval but some requested changes for consistency

@connorjclark connorjclark changed the title core(devtoolsLog): clarify messagelog separation core(devtools-log): consolidate implementation all into gatherer Jun 8, 2022
@connorjclark connorjclark changed the title core(devtools-log): consolidate implementation all into gatherer core(devtools-log): consolidate implementation into gatherer Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants