Skip to content

Commit

Permalink
Merge remote-tracking branch 'namada/james/mainline/fix-default-node-…
Browse files Browse the repository at this point in the history
…logging' (#702) into main

* namada/james/mainline/fix-default-node-logging:
  Log at INFO by default for namadan
  Add changelog
  fix: namadan should log at info by default
  • Loading branch information
juped committed Oct 31, 2022
2 parents ff947e8 + d707166 commit 40cf216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
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

0 comments on commit 40cf216

Please sign in to comment.