Skip to content

Commit

Permalink
fix: use logging instead of print statements (near#9277)
Browse files Browse the repository at this point in the history
@frol  I went through the related code, found this is the only required edit as we already set up logging services in the nearcore.
  • Loading branch information
itsyaasir authored and nikurt committed Jul 26, 2023
1 parent 0fc8745 commit f9b3e27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/o11y/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,10 @@ pub fn reload_log_config(config: Option<&log_config::LogConfig>) {
tracing::info!("Updated the logging layer according to `log_config.json`");
}
Err(err) => {
tracing::info!("Failed to update the logging layer according to the changed `log_config.json`. Errors: {:?}", err);
eprintln!(
"Failed to update the logging layer according to the changed `log_config.json`. Errors: {:?}",
err
);
}
}
}
Expand Down

0 comments on commit f9b3e27

Please sign in to comment.