Skip to content

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

@moimael

Description

@moimael

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions