Skip to content
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

Devnet creation pipes standard output to stderr #146

Open
woodenfurniture opened this issue May 3, 2023 · 0 comments
Open

Devnet creation pipes standard output to stderr #146

woodenfurniture opened this issue May 3, 2023 · 0 comments

Comments

@woodenfurniture
Copy link

Description

Spinning up a devnet via tenderly devnet spawn-rpc ... results in all output being piped to stderr. This makes error handing tricky when being used in the context of scripts because rpc url and errors end up getting piped to the same destination.

We're currently redirecting stderr to stdout so we can capture the rpc data in a file, but errors end up in that file if there is an error:

tenderly devnet spawn-rpc --template \"e2e-latest\" --project \"project\" --output json 2> ./tenderly/.tenderly.json

Expected behavior

The rpc url data should be output to stdout and errors should go to stderr so our scripts are able to easily handle errors. This was we could simply pipe the data to our file and see errors in the console directly.

Workaournd

We are able to see errors in the file that is outputted, so theoretically we could write another script to first check the file for an error and output this to the console.

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

No branches or pull requests

1 participant