Skip to content

Massive log dump in UAT environment when entrypoint is missing #568

@KieranP

Description

@KieranP
  • I have tried upgrading by running bundle update vite_ruby.
  • I have read the troubleshooting section before opening an issue.

Description 📖

When an entrypoint that is included with vite_typescript_tag is missing, vite_ruby dumps the whole Vite config, build status, manifest etc, which can be helpful in development. In our case though, it is over 1 million lines worth (because the manifest JSON is pretty printed).

We noticed that it does this in UAT/staging, causing 1mil log lines to be saved to uat.log/staging.log, which then gets picked up and sent to our logging service in the space of 1 minute.

We need a way to turn off this debug dump in production/uat/staging environments, but there doesn't not seem to be any way to do so currently.

Relavant bits:

No config options to turn this off or to minimize the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: pending triageSomething doesn't seem to be working, but hasn't been verified

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions