Skip to content

build.js: Stringify object args passed to tasks to avoid [Object object] in logs#5395

Open
stevegolton wants to merge 1 commit intomainfrom
dev/sg/build.js-stringify-args
Open

build.js: Stringify object args passed to tasks to avoid [Object object] in logs#5395
stevegolton wants to merge 1 commit intomainfrom
dev/sg/build.js-stringify-args

Conversation

@stevegolton
Copy link
Copy Markdown
Member

At some point we added an object to the tsc task configuration in build.js but the logger that prints out the task info to the console didn't support object serialization - ending up with the following:

[6.947] 84/89	tsc --project ../../ui [object Object]
[20.886] 85/89	tsc --project ../../ui/src/service_worker [object Object]
[21.324] 86/89	tsc --project ../../ui --watch --preserveWatchOutput [object Object]

This patch simply runs args through JSON.stringify() in order to make them readable.

@stevegolton stevegolton requested a review from primiano April 3, 2026 13:01
@stevegolton stevegolton requested a review from a team as a code owner April 3, 2026 13:01
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

🎨 Perfetto UI Builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant