Open joshkg opened 1 year ago
There is no way to hide only these logs for now. You can set the PERCY_LOGLEVEL
env variable using something like cross-env
to suppress the logs.
One workaround is skipping the download altogether by downloading it on your CI yourself (ref doc)
@samarsault thanks for the quick reply -- I will investigate these options!
Hey @joshkg 👋
--silent
flag to silence these logs or use PERCY_DEBUG
env var to whitelist only certain packages to log.@itsjwala I've tried a few options now, here's my initial assessment:
PERCY_LOGLEVEL
to warn
removes the download progress messaging, but also removes the other info
-level messages we'd like to continue seeing (same issue as using --silent
flag)PERCY_DEBUG
variable to whitelist just core
and core:browser
like the following value: PERCY_DEBUG="core,core:browser"
seems to be the closest to what I'm after -- it adds a line per test of percy messaging we didn't have before. that we don't want, but it maintains the rest of the info
level messaging we want to keep, and removes the install
debug level (and others) that we don't want to see.Poking around in the logger source, maybe just an option to exclude the logger.progress
messaging would be the most exact solution, if anyone wants to address this as an enhancement - I don't know how common this particular logging issue is, perhaps its only an issue on Semaphore CI.
When Percy downloads Chromium during asset discovery, the download progress log spams our CI with messages like:
Is it possible to silence this?