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

Setup the build environment, basic scaffolding, and block validation (minus KES) #19

Closed
wants to merge 2 commits into from

Conversation

AndrewWestberg
Copy link
Contributor

KES validation can come in a future PR.

Comment on lines +19 to +29
let tracing_filter = match var("RUST_LOG") {
Ok(level) => match level.to_lowercase().as_str() {
"error" => tracing::Level::ERROR,
"warn" => tracing::Level::WARN,
"info" => tracing::Level::INFO,
"debug" => tracing::Level::DEBUG,
"trace" => tracing::Level::TRACE,
_ => tracing::Level::INFO,
},
Err(_) => tracing::Level::INFO,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

we could probably use the following instead of manual mapping:

https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#

@@ -0,0 +1,20 @@
[package]
name = "amaru-node"
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with @rvcas here, calling the node just amaru seems reasonable (unless we're thinking on treating this crate as a library, which I don't think it's the case).

@AndrewWestberg
Copy link
Contributor Author

Refactoring to move many things into ouroboros repository. closing.

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.

2 participants