syncpack icon indicating copy to clipboard operation
syncpack copied to clipboard

fix(cli): errors not showing when using --log-levels CLI option

Open moimael opened this issue 8 months ago • 7 comments

Syncpack version

14.0.0-alpha.10

Operating system(s)

Linux

Steps to reproduce

yarn syncpack lint failing on CI is hard to diagnose.

The error is lost in the middle of a lot of information, and since we don't have terminal colors, it's hard to spot.

I tried playing with log levels (yarn syncpack:lint --log-levels warn or yarn syncpack:lint --log-levels error), but unless it's on info I don't have any output, even when there is an error.

Expected behavior

We can configure the CLI to output errors only on CI.

Actual behavior

The CLI outputs the full info logs on CI.

Code of Conduct

moimael avatar Feb 18 '25 10:02 moimael