core(assets): json stringify devtools log (#4457)
This commit is contained in:
Родитель
3131106fef
Коммит
0f8b1a3541
|
@ -286,7 +286,7 @@ function saveAssets(artifacts, audits, pathWithBasename) {
|
||||||
function logAssets(artifacts, audits) {
|
function logAssets(artifacts, audits) {
|
||||||
return prepareAssets(artifacts, audits).then(assets => {
|
return prepareAssets(artifacts, audits).then(assets => {
|
||||||
assets.map(data => {
|
assets.map(data => {
|
||||||
log.log(`devtoolslog-${data.passName}.json`, data.devtoolsLog);
|
log.log(`devtoolslog-${data.passName}.json`, JSON.stringify(data.devtoolsLog));
|
||||||
const traceIter = traceJsonGenerator(data.traceData);
|
const traceIter = traceJsonGenerator(data.traceData);
|
||||||
let traceJson = '';
|
let traceJson = '';
|
||||||
for (const trace of traceIter) {
|
for (const trace of traceIter) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче