这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: use error logger in Rust turborepo #3253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

chris-olszewski
Copy link
Member

Moves messaging in Rust land to use the standard logger where applicable:

  • clap errors will now be printed via the error logger
  • turborepo_lib::main now logs any errors via the error logger instead of having the caller decide how to handle the error

The following are other uses of standard (println!/write!) print functionality that weren't changed:

  • clap help text
  • turbo --version
  • turbo bin

This PR does not change the Go side of error logging, but there should only be a single place that needs updating: root.go

Example of new output:
Screen Shot 2023-01-10 at 1 18 43 PM

@vercel
Copy link

vercel bot commented Jan 10, 2023

@chris-olszewski is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@chris-olszewski chris-olszewski marked this pull request as ready for review January 10, 2023 21:27
@chris-olszewski chris-olszewski requested a review from a team as a code owner January 10, 2023 21:27
@vercel
Copy link

vercel bot commented Jan 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 12, 2023 at 2:26PM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 12, 2023 at 2:26PM (UTC)
8 Ignored Deployments
Name Status Preview Comments Updated
examples-cra-web ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)
turbo-vite-web ⬜️ Ignored (Inspect) Visit Preview Jan 12, 2023 at 2:26PM (UTC)

Copy link
Contributor

@mehulkar mehulkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good. Does this print to stdout or stderr?

@chris-olszewski
Copy link
Member Author

Seems good. Does this print to stdout or stderr?

stderr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants