Add 'bundler' column to metro bundler logs

Reviewed By: davidaurelio

Differential Revision: D5809350

fbshipit-source-id: 7e1b9dcda26f3c199ff1723e21c670659d9cf747
This commit is contained in:
Rafael Oleza 2017-09-12 08:52:24 -07:00 committed by Facebook Github Bot
parent 090df5c104
commit 449e943d91
1 changed files with 9 additions and 1 deletions

View File

@ -921,6 +921,7 @@ class Server {
action_name: 'Requesting bundle',
bundle_url: req.url,
entry_point: options.entryFile,
bundler: 'delta',
}),
);
@ -966,6 +967,7 @@ class Server {
log({
...createActionEndEntry(requestingBundleLogEntry),
outdated_modules: numModifiedFiles,
bundler: 'delta',
});
}
@ -980,6 +982,7 @@ class Server {
action_name: 'Requesting sourcemap',
bundle_url: req.url,
entry_point: options.entryFile,
bundler: 'delta',
}),
);
@ -1009,7 +1012,12 @@ class Server {
type: 'bundle_build_done',
});
log(createActionEndEntry(requestingBundleLogEntry));
log(
createActionEndEntry({
...requestingBundleLogEntry,
bundler: 'delta',
}),
);
}
_symbolicate(req: IncomingMessage, res: ServerResponse) {