Git Product home page Git Product logo

Comments (4)

joshkg avatar joshkg commented on June 27, 2024 1

@itsjwala I've tried a few options now, here's my initial assessment:

  • setting 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)
  • moving the download of the chromium browser outside of the Percy install also works. However this is not ideal, as it requires us to monitor browser version changes when the package is upgraded (I could foresee the possibility that we forget the connection between percy & this download and get out of sync in the future)
  • using the 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.

from cli.

samarsault avatar samarsault commented on June 27, 2024

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)

from cli.

joshkg avatar joshkg commented on June 27, 2024

@samarsault thanks for the quick reply -- I will investigate these options!

from cli.

itsjwala avatar itsjwala commented on June 27, 2024

Hey @joshkg 👋

  • does the link solve your issue?
  • you may use --silent flag to silence these logs or use PERCY_DEBUG env var to whitelist only certain packages to log.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.