forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use error logger in Rust turborepo (vercel#3253)
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](https://github.com/vercel/turbo/blob/main/cli/internal/cmd/root.go#L100) Example of new output: ![Screen Shot 2023-01-10 at 1 18 43 PM](https://user-images.githubusercontent.com/4131117/211664782-02d149c3-61d8-469d-b0e3-1855bc66c102.png) Co-authored-by: Thomas Knickman <[email protected]>
- Loading branch information
1 parent
3442473
commit e143b19
Showing
5 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters