-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Print local testnet logs as println
and errors as eprintln
#15005
Conversation
⏱️ 1h 26m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
@@ -30,7 +30,8 @@ pub const CONTAINER_NETWORK_NAME: &str = "aptos-local-testnet-network"; | |||
/// there no second location, there is just the one named pipe. | |||
pub async fn get_docker() -> Result<Docker> { | |||
let docker = Docker::connect_with_local_defaults() | |||
.context(format!("{} (init_default)", ERROR_MESSAGE))?; | |||
.context(format!("{} (init_default)", ERROR_MESSAGE)) | |||
.inspect_err(|e| eprintln!("{:#}", e))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just confirming, you're happy for this to be spread across multiple lines? If not, you can just use {}
instead of {:#}
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it is one line?
Unexpected error: Failed to apply pre run steps for Postgres: Docker is not available, confirm it is installed and running. See https://aptos.dev/guides/local-development-network#faq for assistance. (version_home): error trying to connect: No such file or directory (os error 2): No such file or directory (os error 2)
Note: Probably add it to the changelog |
b65c2c9
to
f6988a0
Compare
thanks. done |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
The local testnet currently prints regular logs using
eprintln
, which is intended for error messages. Update the logs to useprintln
for regular output and reserveeprintln
for errors (such as Docker setup issues).How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist