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

fix: namadan should log at info by default #702

Merged
merged 3 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix info logs to show by default for namadan
([#702](https://github.com/anoma/namada/pull/702))
7 changes: 2 additions & 5 deletions apps/src/bin/anoma-node/main.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
mod cli;

use std::str::FromStr;

use color_eyre::eyre::Result;
use namada_apps::logging;
use tracing_subscriber::filter::Directive;
use tracing_subscriber::filter::LevelFilter;

fn main() -> Result<()> {
// init error reporting
color_eyre::install()?;

// init logging
let default_directive = Directive::from_str("anoma=info")?;
logging::init_from_env_or(default_directive)?;
logging::init_from_env_or(LevelFilter::INFO)?;

// run the CLI
cli::main()
Expand Down